PHPackages                             logadapp/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. [HTTP &amp; Networking](/categories/http)
4. /
5. logadapp/router

ActiveLibrary[HTTP &amp; Networking](/categories/http)

logadapp/router
===============

PHP Request Router library

v0.0.2(2y ago)013MITPHP

Since Jul 13Pushed 2y agoCompare

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

READMEChangelog (2)Dependencies (3)Versions (4)Used By (0)

LogadApp Router
===============

[](#logadapp-router)

LogadApp Router is a PHP router class that provides routing capabilities for building web applications.

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Usage](#usage)
- [Features](#features)
- [Contributing](#contributing)
- [License](#license)

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

[](#installation)

To use LogadApp Router in your PHP project, you can either manually download the source code or install it via Composer.

### Composer Installation

[](#composer-installation)

You can install LogadApp Router using Composer by running the following command:

```
composer require logadapp/router
```

Usage
-----

[](#usage)

To start using LogadApp Router, follow these steps:

1. Include the composer autoload file in your PHP script:

    ```
    require_once 'vendor/autoload.php';
    ```
2. Create a new instance of the Router class:

    ```
    $router = new LogadApp\Router\Router();
    ```
3. Define routes using the available HTTP methods (GET, POST, PATCH, DELETE) and their respective handler callbacks:

    ```
    $router->get('/', function () {
       // Handle GET request for the root path
    });

    $router->post('/users', function () {
       // Handle POST request for the /users path
    });

    $router->group('/auth', function() use ($router) {
       $router->post('/login', [AuthController::class, 'login']);

       $router->post('/register', function () {
           // Handle POST request for the /auth/register path
       });
    }
    ```
4. Run the router to handle incoming requests:

    ```
    $router->run();
    ```

For more usages, check index.php or the examples folder.

Features
--------

[](#features)

- Simple and lightweight PHP router
- Support for common HTTP methods: GET, POST, PATCH, DELETE
- Route grouping and prefixing
- Customizable 404 (Not Found) and 405 (Method Not Allowed) handlers
- Custom route found handlers
- Integration with classes as callback handlers

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

[](#contributing)

As always, contributions are welcome!

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1039d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/55f23d2b3b3943c0fdab8e8e5a86ec805a950017867d08b7a6a0ac74f780879a?d=identicon)[michaelthedev](/maintainers/michaelthedev)

---

Top Contributors

[![michaelthedev](https://avatars.githubusercontent.com/u/39175160?v=4)](https://github.com/michaelthedev "michaelthedev (38 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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