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

v0.0.1 2025-11-05 15:41 UTC

This package is auto-updated.

Last update: 2025-11-05 15:43:21 UTC


README

PHP Version License Build Status

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