Skip to content

Repository files navigation

Quillstack Router

Tests Quality Gate Status Downloads StyleCI CodeFactor Maintainability Rating Lines of Code Coverage Packagist License

The routing library working with PSR-7 requests.

Dispatching

Dispatcher::dispatch() answers with the route that matched, or with one of two routes standing for having matched nothing:

  • NotFoundRoute — nothing is registered for this path.
  • MethodNotAllowedRoute — the path is registered, but not for this method. getAllowedMethods() names the ones it does answer to, which is what a 405 has to carry.

Both say false to isSuccess(), so anything only asking whether it matched keeps working.

Unit tests

Run tests using a command:

phpdbg -qrr ./vendor/bin/unit-tests

Docker

$ docker-compose up -d
$ docker exec -w /var/www/html -it quillstack_router sh

About

The routing library working with PSR-7 requests.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Contributors

Languages