PHPackages                             oladesoftware/router - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. oladesoftware/router

Abandoned → [oladesoftware/httpcrafter](/?search=oladesoftware%2Fhttpcrafter)ArchivedLibrary[Framework](/categories/framework)

oladesoftware/router
====================

A lightweight router written in PHP

v1.1.4(2y ago)0160MITPHPPHP &gt;=8.0.0

Since Dec 14Pushed 2y agoCompare

[ Source](https://github.com/oladesoftware/router)[ Packagist](https://packagist.org/packages/oladesoftware/router)[ Docs](https://github.com/oladesoftware/router/blob/main/README.md)[ RSS](/packages/oladesoftware-router/feed)WikiDiscussions main Synced yesterday

READMEChangelog (9)Dependencies (1)Versions (10)Used By (0)

PHP Router
==========

[](#php-router)

[![Latest Version](https://camo.githubusercontent.com/22d784800f61a71ba47d6249abf36a861f8e2e9fe15bf51598fd8ca049c62bd4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d312e312e342d626c75652e737667)](https://github.com/oladesoftware/router)[![License](https://camo.githubusercontent.com/8bb50fd2278f18fc326bf71f6e88ca8f884f72f179d3e555e20ed30157190d0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e737667)](https://opensource.org/licenses/MIT)

A simple lightweight router implementation for handling HTTP routes written in PHP. This class allows you to define routes, group them, add middleware, and handle requests based on defined routes.

Table of Contents
-----------------

[](#table-of-contents)

- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
- [License](#license)
- [Contributing](#contributing)
- [Contributors](#contributors)
- [Author](#author)

Features
--------

[](#features)

- **Singleton Pattern**: Ensures a single instance of the router.
- **Route Definition**: Add individual routes with HTTP methods, URI paths, and targets (controllers or closures).
- **Route Grouping**: Group multiple routes under a common base path.
- **Middleware Support**: Assign middleware to routes for pre-processing.
- **Named Routes**: Name your routes for easier route generation.
- **Dynamic Route Matching**: Match incoming requests to defined routes and extract parameters.
- **Route Execution**: Execute the target action of matched routes.

Installation
------------

[](#installation)

- **Via Composer (Recommended)**:

```
composer require oladesoftware/router
```

- Manual Installation:

[Download](https://github.com/oladesoftware/router/releases/tag/latest) the router class file and include it in your project.

Usage
-----

[](#usage)

For detailed usage instructions, please refer to the [Usage Documentation](./docs/usage.md).

License
-------

[](#license)

This project is licensed under the MIT License. See the [License](./LICENSE) file for details.

Contributing
------------

[](#contributing)

Contributions are welcome! Feel free to submit issues or pull requests.

Support
-------

[](#support)

For support, please open an issue on the GitHub repository.

Contributors
------------

[](#contributors)

- [Helmut](https://github.com/ahokponou)

Author
------

[](#author)

- [Olade Software](https://oladesoftware.com)

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~22 days

Recently: every ~11 days

Total

9

Last Release

759d ago

Major Versions

0.1.0-alpha → v1.0.02024-04-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/4d433ec0ac2b495a251c0553880b36872adaf2cced0d9f26052f73828228d068?d=identicon)[ahokponou](/maintainers/ahokponou)

---

Top Contributors

[![ahokponou](https://avatars.githubusercontent.com/u/58562594?v=4)](https://github.com/ahokponou "ahokponou (23 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/oladesoftware-router/health.svg)

```
[![Health](https://phpackages.com/badges/oladesoftware-router/health.svg)](https://phpackages.com/packages/oladesoftware-router)
```

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M297](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
