2017 © Pedro Peláez
 

library router

image

fratily/router

  • Wednesday, June 27, 2018
  • by kento-oka
  • Repository
  • 0 Watchers
  • 0 Stars
  • 51 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 28 % Grown

The README.md

fratily/router

Usage

use Fratily\Router\RouterBuilder;
use Fratily\Router\Route;
use Fratily\Router\RouteOption;

$option = new RouteOption();
$routes = [
    new Route('/', $option->strictCheckTrailing(false)),
    new Route('/foo/bar', $option->strictCheckTrailing(false)),
    new Route('/foo/:name'),
    $matchRoute = (new Route('/foo/:name/setting')),
    new Route('/foo/:name/profile'),
    new Route('/bar'),
    new Route('/baz'),
];

$router = (new RouterBuilder($routes))->build();

[
    'route' => $route, // $matchRoute
    'params' => $params // ['name' => 'any']
] = $router->match('/foo/any/setting');

The Versions

27/06 2018

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Kento Oka

routing router fratily

27/06 2018

v0.4.0

0.4.0.0

  Sources   Download

MIT

The Requires

  • php >=7.0

 

by Kento Oka

routing router fratily

27/06 2018

dev-new-version

dev-new-version

  Sources   Download

MIT

The Requires

  • php >=7.0

 

by Kento Oka

routing router fratily

11/06 2018

v0.3.1

0.3.1.0

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Kento Oka

router fratily

17/02 2018

v0.3.0

0.3.0.0

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Kento Oka

router fratily

17/02 2018

dev-newStruct

dev-newStruct

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kento Oka

router fratily

03/02 2018

v0.2.0

0.2.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kento Oka

router fratily

10/01 2018

v0.1.0

0.1.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kento Oka

router fratily