PHPackages                             bernard-arhia/routee - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. bernard-arhia/routee

ActiveLibrary[HTTP &amp; Networking](/categories/http)

bernard-arhia/routee
====================

A very simple and lightweight routing library for PHP.

0.1.0(3y ago)211[1 issues](https://github.com/bernardarhia/routee/issues)MITPHPPHP ^8.0.0

Since Jul 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/bernardarhia/routee)[ Packagist](https://packagist.org/packages/bernard-arhia/routee)[ RSS](/packages/bernard-arhia-routee/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

Routee
======

[](#routee)

A lightweight php routing service for writing fullstack applications in PHP.

Notice
======

[](#notice)

Make sure you are using php version &gt;= 8.0.1

Installation
============

[](#installation)

```
composer require bernard-arhia/routee
```

Example
=======

[](#example)

A simple route service
----------------------

[](#a-simple-route-service)

index.php

```
use Http\Router;
require_once  __DIR__  .  "/vendor/autoload.php";

$router  =  new  Router;
$router->get("/", function(){
echo  "Hello world";
});

$router->run();
```

Now open the terminal and start your php web server

```
php -S localhost:9000
```

This will start the php server on port 9000 In your browser open  to preview the example [![A screenshot](https://camo.githubusercontent.com/3c8b1ec2380dc5e168f70a1dc60ff5c0576c53fbdf0f1873ca8bfc3c766f489f/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f65766572696368312f696d6167652f75706c6f61642f76313635353136363931382f726f757465652f53637265656e73686f745f39375f7868656e63312e706e67)](https://camo.githubusercontent.com/3c8b1ec2380dc5e168f70a1dc60ff5c0576c53fbdf0f1873ca8bfc3c766f489f/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f65766572696368312f696d6167652f75706c6f61642f76313635353136363931382f726f757465652f53637265656e73686f745f39375f7868656e63312e706e67)

The Route accepts the following http request methods

- GET ($router-&gt;get())
- POST ($router-&gt;post())
- PUT ($router-&gt;put())
- DELETE ($router-&gt;delete())
- PATCH ($router-&gt;patch())

The router accepts basically the following parameters

- ***(string)*** **$path**: the path of the route
- ***(method)*** **$callback**: the callback function to be executed when the route is matched (You can also pass in a class method)

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

Unknown

Total

1

Last Release

1450d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f9d33d21c62f32565aee637cdf882177d7d19a7cc261942913c680d06ece3b60?d=identicon)[Everich](/maintainers/Everich)

---

Top Contributors

[![bernardarhia](https://avatars.githubusercontent.com/u/55264725?v=4)](https://github.com/bernardarhia "bernardarhia (48 commits)")

---

Tags

cmscsrf-protectionhttplightweightphprouterroutingurl-handlerhttpphpapirestrouterroutingexpress php

### Embed Badge

![Health badge](/badges/bernard-arhia-routee/health.svg)

```
[![Health](https://phpackages.com/badges/bernard-arhia-routee/health.svg)](https://phpackages.com/packages/bernard-arhia-routee)
```

###  Alternatives

[aphiria/aphiria

The Aphiria framework

1428.2k2](/packages/aphiria-aphiria)[wilaak/radix-router

High-performance radix tree based HTTP request router

616.0k5](/packages/wilaak-radix-router)[openapi/openapi-sdk

Minimal and agnostic PHP SDK for Openapi® (https://openapi.com)

171.4k1](/packages/openapi-openapi-sdk)

PHPackages © 2026

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