PHPackages                             jakulov/corpuscle\_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. jakulov/corpuscle\_router

ActiveLibrary[Framework](/categories/framework)

jakulov/corpuscle\_router
=========================

Corpuscle Framework Router

012PHP

Since Dec 31Pushed 10y ago1 watchersCompare

[ Source](https://github.com/jakulov/corpuscle_router)[ Packagist](https://packagist.org/packages/jakulov/corpuscle_router)[ RSS](/packages/jakulov-corpuscle-router/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Corpuscle Router
================

[](#corpuscle-router)

Tiny router for API-like apps build with Corpuscle Framework

Can be installed with composer

```
composer require jakulov/corpuscle_router

```

1. Router
---------

[](#1-router)

Container could be used to store any array data (e.g. configuration or repository) and easy accessing it with dot notation.

```
$config = [
    '/articles' => 'ArticlesController',
];

$router = new \jakulov\Corpuscle\Router\ApiRouter();
$router->setConfig($config);

$request = \Symfony\Component\HttpFoundation\Request::create('/articles', 'GET');
$result = $router->route($request);
echo $result->controller; // 'ArticlesController'
echo $result->action; // 'list'
echo $result->id; // null

$request = \Symfony\Component\HttpFoundation\Request::create('/articles', 'POST');
$result = $router->route($request);
echo $result->controller; // 'ArticlesController'
echo $result->action; // 'create'
echo $result->id; // null

$request = \Symfony\Component\HttpFoundation\Request::create('/articles/1', 'POST');
$result = $router->route($request);
echo $result->controller; // 'ArticlesController'
echo $result->action; // 'edit'
echo $result->id; // 1

$request = \Symfony\Component\HttpFoundation\Request::create('/articles/1', 'GET');
$result = $router->route($request);
echo $result->controller; // 'ArticlesController'
echo $result->action; // 'show'
echo $result->id; // 1

$request = \Symfony\Component\HttpFoundation\Request::create('/articles/1/delete', 'POST');
$result = $router->route($request);
echo $result->controller; // 'ArticlesController'
echo $result->action; // 'delete'
echo $result->id; // 1

$request = \Symfony\Component\HttpFoundation\Request::create('/articles/1/comments', 'GET');
$result = $router->route($request);
echo $result->controller; // 'ArticlesController'
echo $result->action; // 'comments'
echo $result->id; // 1

```

Tests
-----

[](#tests)

Run: vendor/bin/phpunit tests/

Tests are also examples for usage library

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

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/f2fdcad0f88865668f13c49e8496d99465ff7530e09a3240c98dec8f21c04f35?d=identicon)[jakulov](/maintainers/jakulov)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[laravel/dusk

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

1.9k38.6M290](/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)
