Simple static router for Nette Framework
PHP
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
tests
tools/benchmark
.gitattributes
.gitignore
.travis.yml
README.md
composer.json

README.md

Nextras\StaticRouter

Build Status Downloads this Month Stable version HHVM Status

Installation

Add to your composer.json:

"require": {
	"nextras/static-router": "~1.0"
}

Example

use Nextras\Routing\StaticRouter;

$router = new StaticRouter(['Homepage:default' => 'index.php'], StaticRouter::ONE_WAY);

$router = new StaticRouter([
	'Homepage:default' => '',
	'Auth:signIn' => 'sign-in',
	'Auth:signOut' => 'sign-out',
	'Auth:signUp' => 'sign-up',
]);