roaresearch/yii2-roa 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

roaresearch/yii2-roa

Composer 安装命令:

composer require roaresearch/yii2-roa

包简介

Yii 2 ROA Library

README 文档

README

This library contains the modules and controllers to build a ROA application using the Yii2 framework.

Latest Stable Version Total Downloads Code Coverage Scrutinizer Code Quality

Scrutinizer Build Status Scrutinizer

Prerequisites

  • Install PHP 8.1 or higher
  • Composer Installed
  • Run command composer check-platform-reqs to check all requirements.

Installation

Install on a Yii2 App Advanced Project

Create new project

Running the tests

This section is to run the tests on this library, to run the tests on your application check Yii2 App Roa Tests

Configure tests

The tests come preconfigured except for the database credentials, to configure your database credentials create a file tests/_app/config/db.local.php with the Yii2 configuration for Yii::$app->db component. Example:

return [
    'dsn' => ..., 
    'username' => ..., 
    'password' => ..., 
];

Make sure to create a database to load the migrations, by default the name is yii2_roa_test

Deploy tests

This library includes a composer script to deploy the tests.

composer deploy-tests

Run tests

This library also includes 2 composer scripts to run the tests easily.

  • composer run-tests run all codeception tests.
  • composer run-coverage run all codeception tests and generate coverage report

Write Tests

You can write new tests on the tests/ folder following codeception documentation

Examples

Yii2 ROA Live Demo

You can run a live demo on a freshly installed project to help you run testing or understand the responses returned by the server.

composer yii -- serve [yii2Options]

See https://www.yiiframework.com/doc/api/2.0/yii-console-controllers-servecontroller

Then on your browser access the route http://localhost:8080/index.php/api

Other Libraries

You can clone the following repositories and use the live demo they provide

Use Cases

TO DO

Built With

Code of Conduct

Please read CODE_OF_CONDUCT.md for details on our code of conduct.

Contributing

Please read CONTRIBUTING.md for details on the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Considering SemVer for versioning rules 9, 10 and 11 talk about pre-releases, they will not be used within the ROAResearch.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

统计信息

  • 总下载量: 1.52k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2019-11-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固