PHPackages                             philwaters/api - 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. philwaters/api

ActiveLibrary[API Development](/categories/api)

philwaters/api
==============

API router

0.4.0(8y ago)023MITPHP

Since Apr 21Pushed 8y ago1 watchersCompare

[ Source](https://github.com/PhilWaters/API)[ Packagist](https://packagist.org/packages/philwaters/api)[ RSS](/packages/philwaters-api/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

API
===

[](#api)

API router

Example
-------

[](#example)

$router = new PhilWaters\\API\\Router();

$router -&gt;url("people/(?P\[0-9\]+).(?P(json|text))") -&gt;method("GET") -&gt;handler(array("PeopleController", "load"));

$router-&gt;run($\_GET\['url'\], $\_SERVER\['REQUEST\_METHOD'\], $\_REQUEST);

---

use PhilWaters\\API\\BaseController;

class PeopleController extends PhilWaters\\API\\BaseController { public function load($id, $format) { $data = array();

```
    if ($format == "json") {
        $this->respondJSON($data);
    } else {
        $this->respondText(implode(",", $data));
    }
}

```

}

---

GET /api/people/7.json HTTP/1.1

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Total

4

Last Release

3211d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20259786?v=4)[Phil Waters](/maintainers/PhilWaters)[@PhilWaters](https://github.com/PhilWaters)

---

Top Contributors

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

---

Tags

apirouter

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/philwaters-api/health.svg)

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

###  Alternatives

[pear2/net_routeros

This package allows you to read and write information from a RouterOS host using MikroTik's RouterOS API.

250113.3k4](/packages/pear2-net-routeros)[m165437/laravel-blueprint-docs

API Blueprint Renderer for Laravel

22779.5k](/packages/m165437-laravel-blueprint-docs)

PHPackages © 2026

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