priskz/sorad-api
Composer 安装命令:
composer require priskz/sorad-api
包简介
A service oriented API built around the Responder-Action-Domain pattern.
README 文档
README
Purpose
A service oriented API built around the Responder-Action-Domain pattern.
Install via Composer
Add the following to your "require" schema:
"require": {
"priskz/sorad-api": "~0.1.0"
}
Run: composer install
Add 'SORAD\Laravel\APIServiceProvider' to the 'providers' in /app/laravel/config/app.php to enable the newly added service.
Run: php artisan vendor:publish to publish the configuration file in /app/laravel/config/ directory.
Register SORAD API based modules via the /app/laravel/config/sorad.php modules array. These entries should be the directory path to the modules. PSR4 autoloading recommended. These modules will require a routes.php file.
Example:
'modules' => [
'API/Account',
'API/Admin',
'API/Auth',
'API/Front',
],
In the above example, we have a dedicated API directory that holds modules.
统计信息
- 总下载量: 107
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 7
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-04-20