jinya/router

A simple attribute-based routing library

0.10.0 2024-03-30 22:58 UTC

This package is auto-updated.

Last update: 2024-12-01 00:15:48 UTC


README

Introduction

About

Jinya Router is a small and capable router and request handler for PHP. It works by analyzing a directory for the provided attributes and generates a static routing table. This routing table is based on the excellent nikic/fast-route package. The handling of the request itself is based on the battle tested Laminas project, but is not limited to this. You can just create the routing table and then perform the routing by yourself.

Highlights

  • Based on the super fast nikic/fast-route and battle tested Laminas project
  • Supports PSR-15 middlewares
  • Routing table generation can be changed
  • Custom route support
  • Bring your own request handler or use the integrated one
  • PHP 8.1 and PHP 8.2 compatible

Questions?

We have answers, just open an issue on Github and we will check it out.