2017 © Pedro Peláez
 

library jsonapistrategy

JSON API strategy for the league/route package

image

inthere/jsonapistrategy

JSON API strategy for the league/route package

  • Friday, May 12, 2017
  • by InThere
  • Repository
  • 4 Watchers
  • 0 Stars
  • 26 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 18 % Grown

The README.md

JSONApi strategy

The league/route routing package which allows custom strategies. This package provides a custom strategy for compatibility with the JSONAPI standard., (*1)

Installation

This package can be used with league/route version 3 or higher. In previous versions the custom strategies aren't enabled., (*2)

You can install the package via composer:, (*3)

composer require inthere/jsonapistrategy, (*4)

Usage

Set the strategy for the route collection:, (*5)

use InThere\Route\JsonApi\JsonApiStrategy;

$route = new League\Route\RouteCollection();

$route->setStrategy(new JsonApiStrategy());

Or use the strategy for individual routes:, (*6)

$route = new League\Route\RouteCollection;

$route->get('/foo', Foo\FooController::bar::class)
    ->setStrategy(new JsonApiStrategy());

Tests

$ vendor/bin/phpunit, (*7)

Contributors

Contributions are welcome. We accept contributions via pull requests on Github., (*8)

License

The MIT License (MIT). Please see the License File for more information., (*9)

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., (*10)

The Versions

12/05 2017

dev-master

9999999-dev

JSON API strategy for the league/route package

  Sources   Download

The Requires

 

The Development Requires

12/05 2017

1.0.0

1.0.0.0

JSON API strategy for the league/route package

  Sources   Download

The Requires

 

The Development Requires