PHPackages                             luminar-organization/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. [Framework](/categories/framework)
4. /
5. luminar-organization/router

ActiveLibrary[Framework](/categories/framework)

luminar-organization/router
===========================

A lightweight and flexible router for the Luminar Framework

013PHP

Since Oct 18Pushed 1y agoCompare

[ Source](https://github.com/luminar-organization/router)[ Packagist](https://packagist.org/packages/luminar-organization/router)[ RSS](/packages/luminar-organization-router/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Luminar Router
==============

[](#luminar-router)

[![Tests Status](https://camo.githubusercontent.com/a57c95edc86c25595002f64e83ccb2b7e4128940e5f4a4cb4ae2f784a8508302/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c756d696e61722d6f7267616e697a6174696f6e2f726f757465722f74657374732e796d6c3f6c6162656c3d5465737473)](https://camo.githubusercontent.com/a57c95edc86c25595002f64e83ccb2b7e4128940e5f4a4cb4ae2f784a8508302/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c756d696e61722d6f7267616e697a6174696f6e2f726f757465722f74657374732e796d6c3f6c6162656c3d5465737473)

The Luminar Router is a lightweight routing component for the Luminar PHP framework. It allows you to define and manage routes in your application, supporting dependency injection and advanced route handling.

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

[](#installation)

Install via Composer:

```
composer require luminar-organization/router
```

Basic Usage
===========

[](#basic-usage)

Defining Routes
---------------

[](#defining-routes)

You can define routes using the Route annotation, specifying the HTTP method, the route pattern.

```
namespace App\Controllers;

use Luminar\Http\Controller\AbstractController;
use Luminar\Http\Response;

class ExampleController extends AbstractController
{
    public static string $response = "Hello World";

    #[Route("/example", methods: "GET")]
    public function index(): Response
    {
        return $this->text($this::$response);
    }
}
```

Handling Requests
-----------------

[](#handling-requests)

To handle incoming HTTP requests, use the `dispatch` method

```
$response = $router->dispatch($_SERVER["REQUEST_METHOD"], $_SERVER["REQUEST_URI"]);
```

License
=======

[](#license)

This package is open-sourced software licensed under the [MIT License](LICENSE)

---

This README provides an overview of how to use the `luminar-organization/router` component in your projects. It covers installation, basic routing.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity17

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/90420828?v=4)[Patryk](/maintainers/PatrykMolenda)[@PatrykMolenda](https://github.com/PatrykMolenda)

---

Top Contributors

[![PatrykMolenda](https://avatars.githubusercontent.com/u/90420828?v=4)](https://github.com/PatrykMolenda "PatrykMolenda (10 commits)")

### Embed Badge

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

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

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M299](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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