imrealashu / laravelrest
Laravel 5 包用于创建 REST API 和 Transformer
v0.1.2.4
2015-12-07 16:28 UTC
Requires
- php: >=5.3.0
- illuminate/support: ~5.1
Requires (Dev)
- phpunit/phpunit: 4.*
- scrutinizer/ocular: ~1.1
This package is not auto-updated.
Last update: 2024-09-18 18:23:07 UTC
README
安装
通过 Composer
$ composer require imrealashu/laravelrest
通过 composer.json
{
"require": {
"imrealashu/laravelrest": "0.1.*"
}
}
在 config/app.php 文件的 ServiceProviders 数组中添加
'Providers' => [ imrealashu\laravelrest\RestServiceProvider::class ],
用法
$ php artisan vendor:publish
要安装
$ php artisan rest:install
创建新的 Transformer 和 Controller
$ php artisan rest:new ControllerName
有关完整文档,请参阅 文档
安全
如果您发现任何与安全相关的问题,请通过电子邮件发送至 imrealashu@gmail.com,而不是使用问题跟踪器。
致谢
- [Ashish Singh][https://github.com/imrealashu]
许可证
MIT 许可证 (MIT)。有关更多信息,请参阅 许可证文件