PHPackages                             appzcoder/routing - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. appzcoder/routing

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

appzcoder/routing
=================

URL Request Router

472PHP

Since Sep 29Pushed 10y ago1 watchersCompare

[ Source](https://github.com/appzcoder/routing)[ Packagist](https://packagist.org/packages/appzcoder/routing)[ RSS](/packages/appzcoder-routing/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

URL Request Router
==================

[](#url-request-router)

URL Request Router

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

[](#installation)

1. Run

    ```
    composer require appzcoder/routing:"dev-master"

    ```
2. Add bellow lines to your script

    ```
    require 'vendor/autoload.php';
    ```

Usage
-----

[](#usage)

```
// Make Route alias of Route Facade for static instance calling
class_alias('Appzcoder\Routing\RouterFacade', 'Route');

// Set your own controller namespace (optional)
Route::setControllerNamespace("App\\Controllers\\");

// GET Route with anonymous function
Route::get('/', function () {
    return 'Hello World';
});

// Route with name parameter
Route::get('/demo/hello/{name}', 'MyController#getHello');

// Route with name and id both parameters
Route::get('/demo/hello/{id}/me/{name}', 'MyController#getHello');

// POST Verb Route
Route::post('/demo', 'MyController#getIndex');

// Controller Route
Route::controller('/my', 'MyController');

// RESTfull Resource Route
Route::resource('/person', 'PersonController');

// Group Route
Route::group(['prefix' => 'admin', 'namespace' => 'Admin'], function () {
    Route::get('/users', function () {
        return "/admin/users";
    });

    Route::get('/teachers', function () {
        return "/admin/teachers";
    });

    Route::get('/dashboard', 'AdminController#getIndex');
});

// Finally execute or dispatch your route to your desire cotroller method or callback
Route::execute();
```

\##Author

[Sohel Amin](http://www.sohelamin.com)

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/appzcoder-routing/health.svg)

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

###  Alternatives

[light/yii2-lock-form

yii2 activeform ActiveForm bootstrap loading

384.2k1](/packages/light-yii2-lock-form)[jzawadzki/metar-php

lightweight library for decoding METAR messages

101.2k](/packages/jzawadzki-metar-php)

PHPackages © 2026

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