inthere/jsonapistrategy 问题修复 & 功能扩展

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

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

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

GitHub 信息

  • Stars: 0
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2017-05-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固