PHPackages                             aliensdev/ad-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. aliensdev/ad-router

ActiveLibrary

aliensdev/ad-router
===================

11PHP

Since Sep 22Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Aliens-dev/PHP-Router)[ Packagist](https://packagist.org/packages/aliensdev/ad-router)[ RSS](/packages/aliensdev-ad-router/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP Router
----------

[](#php-router)

#### How it Works

[](#how-it-works)

1. Capture the Request ```
    - $request = ServerRequest::fromGlobals();

    ```
2. Instantiate the Router ```
    - $router = new Router();

    ```
3. Add Routes ```
    - $router->addRoute("GET","/",[HomeController::class, "index"]);

    ```
4. get The Correspondent Route ```
    - $route = $router->match($request);

    ```
5. Generate Response ```
     if(! is_null($route)) {
        // if route Found !
         $response = $router->dispatch($route);
     }else {
        // if route isn't found
         $response = new Response(404,[],"Not Found!");
     }

    ```
6. Send back the response ```
    - send($response);

    ```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/31248768?v=4)[aliensdev](/maintainers/aliensdev)[@aliensdev](https://github.com/aliensdev)

---

Top Contributors

[![Aliens-dev](https://avatars.githubusercontent.com/u/48388760?v=4)](https://github.com/Aliens-dev "Aliens-dev (7 commits)")

### Embed Badge

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

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

PHPackages © 2026

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