inthere/jsonapistrategy
Composer 安装命令:
composer require inthere/jsonapistrategy
包简介
JSON API strategy for the league/route package
README 文档
README
The league/route routing package which allows custom strategies. This package provides a custom strategy for compatibility with the JSONAPI standard.
Installation
This package can be used with league/route version 3 or higher. In previous versions the custom strategies aren't enabled.
You can install the package via composer:
composer require inthere/jsonapistrategy
Usage
Set the strategy for the route collection:
use InThere\Route\JsonApi\JsonApiStrategy; $route = new League\Route\RouteCollection(); $route->setStrategy(new JsonApiStrategy());
Or use the strategy for individual routes:
$route = new League\Route\RouteCollection; $route->get('/foo', Foo\FooController::bar::class) ->setStrategy(new JsonApiStrategy());
Tests
$ vendor/bin/phpunit
Contributors
Contributions are welcome. We accept contributions via pull requests on Github.
License
The MIT License (MIT). Please see the License File for more information.
About InThere
InThere - "The training Through Gaming Company" - speeds up training your team and change processes by providing a micro-training concept based on serious games.
统计信息
- 总下载量: 48
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2017-05-12