library resource
Resource Routing & Dispatching Framework
crysalead/resource
Resource Routing & Dispatching Framework
- Monday, November 13, 2017
- by jails
- Repository
- 3 Watchers
- 0 Stars
- 607 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 27 % Grown
Resource - Resource Dispatching Strategy
, (*1)
Resource dispatching strategy for router., (*2)
Installation
composer require crysalead/resource
API
Setting up the strategy
Example of routes definition:, (*3)
use Lead\Router\Router;
use Lead\Router\Resource\ResourceStrategy;
$router = new Router();
$router->strategy('resource', new ResourceStrategy());
$router->resource('MyResource');
// Matching any following URLs
// /my_resource
// /my_resource/:<action>
// /my_resource/<id>/:<action>
// /my_relation/<id>/my_resource
// /my_relation/<id>/my_resource/:<action>
dev-master
9999999-dev
Resource Routing & Dispatching Framework
Sources
Download
MIT
The Requires
The Development Requires
by
CrysaLEAD
resource
dispatching