newtovaux / gjrouter
A simple and lightweight PHP router, with JWT support.
v1.0.14
2021-03-06 17:47 UTC
Requires
- php: ^7.4|^8.0
- ext-json: *
- lindelius/php-jwt: ^0.9
- psr/log: ^1.1
Requires (Dev)
- monolog/monolog: ^2.2
- phpunit/phpunit: ^9
- vimeo/psalm: ^4.4
README
A simple PHP Router incorporating JWT authenticator.
Packagist
GJRouter is available at Packagist.
Installation
Install the latest version with Composer:
composer require newtovaux/gjrouter
If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency:
composer require --dev newtovaux/gjrouter
Basic Usage
See the examples/index.php file for a full example.
About
Source
Source is available on GitHub: https://github.com/newtovaux/gjrouter
Requirements
- GJRouter
^1.0
is tested with PHP 7.4 or above, but may work with earlier versions.
License
GJRouter is licensed under the MIT License - see the LICENSE file for details.
Development
Create autoload:
composer dump-autoload -o
Static Analysis:
./vendor/bin/psalm --show-info=true
Run tests:
./vendor/bin/phpunit tests