reymark / mrouter
A lightweight and flexible PHP routing library for building clean and maintainable web applications.
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/reymark/mrouter
Requires
- php: >=7.4
Requires (Dev)
- phpunit/phpunit: ^11.5
README
A lightweight, dependency-free PHP routing library for building clean, fast, and maintainable web applications.
Designed to work in any PHP project, including plain PHP, MVC structures, or custom frameworks.
🚀 Features
✅ Simple and expressive route definitions
✅ Supports GET, POST, PUT, DELETE, and multiple methods
✅ Dynamic parameters (/user/{id})
✅ Route grouping with prefixes and middlewares
✅ Named routes (->name('route.name'))
✅ Custom 404 handlers
✅ Fully tested with PHPUnit
✅ PSR-4 autoload compatible
📦 Installation
composer require reymark/mrouter