newtovaux/gjrouter

A simple and lightweight PHP router, with JWT support.

v1.0.14 2021-03-06 17:47 UTC

This package is auto-updated.

Last update: 2024-05-12 16:04:33 UTC


README

Total Downloads Latest Stable Version Continuous Integration

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