PHPackages                             takashiki/cdo - 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. takashiki/cdo

ActiveLibrary[Framework](/categories/framework)

takashiki/cdo
=============

A simple php router.

v1.0.0(9y ago)22214[1 issues](https://github.com/takashiki/cdo/issues)MITPHPPHP &gt;=5.5.0

Since Jul 4Pushed 9y ago4 watchersCompare

[ Source](https://github.com/takashiki/cdo)[ Packagist](https://packagist.org/packages/takashiki/cdo)[ Docs](https://github.com/takashiki/cdo)[ RSS](/packages/takashiki-cdo/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (3)Used By (0)

Central do
==========

[](#central-do)

A simple php router designed for super tiny projects.

PATH\_INFO Only.

Install
-------

[](#install)

```
composer require takashiki/cdo

```

Demo
----

[](#demo)

```
$do = new \Mis\Cdo();

$do->get('/', function () {
    echo 'hello world';
});

$do->post('/', function () {
    $name = isset($_POST['name']) ? $_POST['name'] : 'world';
    echo "hello {$name}";
});

$do->any('/(\d+)', function ($id) {
    echo $id;
});

/**
 * When using named subpattern, order of parameters is not matter.
 * eg. /book/2
 */
$do->any('/(?P\w+)/(?P\d+)', function ($page, $type) {
    echo $type.''.$page;
});

$do->run();

```

Or:

```
use Mis\Cdo;

Cdo::get('/', function () {
    echo 'hello world';
});

Cdo::run();

```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

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

3648d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

router

### Embed Badge

![Health badge](/badges/takashiki-cdo/health.svg)

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

###  Alternatives

[slim/slim

Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs

12.3k51.8M1.4k](/packages/slim-slim)[klein/klein

A lightning fast router for PHP

2.7k1.1M31](/packages/klein-klein)[slim/slim-skeleton

A Slim Framework skeleton application for rapid development

1.6k462.3k6](/packages/slim-slim-skeleton)[pecee/simple-router

Simple, fast PHP router that is easy to get integrated and in almost any project. Heavily inspired by the Laravel router.

675224.9k18](/packages/pecee-simple-router)[rareloop/router

A powerful PHP Router for PSR7 messages inspired by the Laravel API

92184.1k5](/packages/rareloop-router)[yiisoft/router

Yii router

62343.6k26](/packages/yiisoft-router)

PHPackages © 2026

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