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

ActiveLibrary

alineisi/router
===============

this package is used to implement routing system with a lot of cool features !!!

1.0(4y ago)262MITPHP

Since Apr 28Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ialineisi/routing)[ Packagist](https://packagist.org/packages/alineisi/router)[ RSS](/packages/alineisi-router/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

router
======

[](#router)

Routing system for PHP
======================

[](#routing-system-for-php)

Requries PHP &gt;= 7.0
----------------------

[](#requries-php--70)

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

[](#installation)

- `composer require alineisi/router`

To get started
--------------

[](#to-get-started)

- `require_once __DIR__ . '/vendor/autoload.php';`
- `use Alineisi\Route;`

#### be sure adding

[](#be-sure-adding)

- `Route::dispatch();`

#### end of index.php

[](#end-of-indexphp)

Usage
-----

[](#usage)

### ex.1

[](#ex1)

- `Route::get('/', function () {`
- `return 'Hello World';`
- `});`

### ex.2

[](#ex2)

- `Route::get('/', [HomeController::class, 'index']);`

### ex.3

[](#ex3)

- `Route::post('/submit', function () {`
- `return $_POST['name'];`
- `});`

Features
--------

[](#features)

### you can set not found page by using

[](#you-can-set-not-found-page-by-using)

- `Route::notFoundPath($path);`

### set named routes by using name method after routing, for example:

[](#set-named-routes-by-using-name-method-after-routing-for-example)

- `Route::get('/', function () {`
- `  return 'Hello World';`
- `})->name('index');`

#### and to use it:

[](#and-to-use-it)

- `\Alineisi\routeName('index');`

### you can also returning views by using

[](#you-can-also-returning-views-by-using)

- `Route::view('/', 'index');`

#### or

[](#or)

- `Route::view('/', 'index.php');`

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

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

1480d ago

### Community

Maintainers

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

---

Top Contributors

[![ialineisi](https://avatars.githubusercontent.com/u/82692859?v=4)](https://github.com/ialineisi "ialineisi (16 commits)")

### Embed Badge

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

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

PHPackages © 2026

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