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(1y ago)0160MITPHPPHP &gt;=8.0.0

Since Dec 14Pushed 1y 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 1mo ago

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

28

—

LowBetter than 54% of packages

Maintenance31

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

711d 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/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

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

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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