Componette

Componette

nextras

nextras / static-router v2.0.0

Simple static router for Nette Framework

download-cloud-line composer require nextras/static-router

Nextras StaticRouter

Build Status Downloads this Month Stable Version

Installation

Add to your composer.json:

"require": {
	"nextras/static-router": "~2.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',
]);
  • v2.0.0 v2.0.0

    • updated for Nette 3.x
price-tag-2-line

Badges

guide-fill

Dependencies

php (>=7.1)
nette/http (~3.0@rc)
nette/routing (~3.0@rc)
Componette Componette felix@nette.org