diversen/minimal-router

This package is abandoned and no longer maintained. No replacement package was suggested.

A very simple and minimal PHP router

v2.0.0 2017-06-30 17:21 UTC

This package is auto-updated.

Last update: 2021-07-20 10:31:08 UTC


README

A very simple and minimal router for PHP. Routing is done with regular expressions.

Install:

composer require diversen/minimal-router

Usage:

See index.php which adds two routes.

You can run the built-in PHP server in minimal-router/ which will run the example.

See test.php which holds the actions for the two routes.