reymark/mrouter

A lightweight and flexible PHP routing library for building clean and maintainable web applications.

Maintainers

Package info

github.com/Mark6286/mrouter

pkg:composer/reymark/mrouter

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

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

This package is auto-updated.

Last update: 2026-03-05 16:19:35 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