PHPackages                             cline/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. [API Development](/categories/api)
4. /
5. cline/router

ActiveLibrary[API Development](/categories/api)

cline/router
============

Auto register routes using PHP attributes

1.0.0(1mo ago)00MITPHPPHP ^8.5.0

Since Mar 24Pushed 1mo agoCompare

[ Source](https://github.com/faustbrian/router)[ Packagist](https://packagist.org/packages/cline/router)[ RSS](/packages/cline-router/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelog (1)Dependencies (7)Versions (3)Used By (0)

[![GitHub Workflow Status](https://github.com/faustbrian/router/actions/workflows/quality-assurance.yaml/badge.svg)](https://github.com/faustbrian/router/actions)[![Latest Version on Packagist](https://camo.githubusercontent.com/477a9c637f7d2f750210bba060a63afe7f9ce996b0564a11d4fc0c14e3984f12/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636c696e652f726f757465722e737667)](https://packagist.org/packages/cline/router)[![Software License](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/5fa4168fb6d9804447a95ca6caa0f063d6ca5e3e082ddd974e1e1a0855e82d83/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c696e652f726f757465722e737667)](https://packagist.org/packages/cline/router)

---

router
======

[](#router)

Auto register routes using PHP attributes.

Requirements
------------

[](#requirements)

> **Requires [PHP 8.4+](https://php.net/releases/)**

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

[](#installation)

```
composer require cline/router
```

Usage
-----

[](#usage)

```
use Cline\Router\Attributes\Get;

final class UsersController
{
    #[Get('users')]
    public function index(): void {}
}

// config/router.php
return [
    'directories' => [
        app_path('Http/Controllers'),
    ],
];
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please use the [GitHub security reporting form](https://github.com/faustbrian/router/security) rather than the issue queue.

Credits
-------

[](#credits)

- [Brian Faust](https://github.com/faustbrian)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License. Please see [License File](LICENSE.md) for more information.

###  Health Score

41

—

FairBetter than 88% of packages

Maintenance97

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

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 ~0 days

Total

2

Last Release

46d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22145591?v=4)[Brian Faust](/maintainers/faustbrian)[@faustbrian](https://github.com/faustbrian)

---

Top Contributors

[![faustbrian](https://avatars.githubusercontent.com/u/22145591?v=4)](https://github.com/faustbrian "faustbrian (1 commits)")

---

Tags

php

###  Code Quality

TestsPest

### Embed Badge

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

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

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[mozex/anthropic-laravel

Anthropic PHP for Laravel is a supercharged PHP API client that allows you to interact with the Anthropic API

71226.4k1](/packages/mozex-anthropic-laravel)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)

PHPackages © 2026

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