PHPackages                             binemmanuel/servemyphp - 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. binemmanuel/servemyphp

ActiveLibrary[API Development](/categories/api)

binemmanuel/servemyphp
======================

A light php library for building server-side applications (APIs)

v1.0.14(3y ago)361MITPHPPHP ^8.1

Since Aug 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/binemmanuel/servemyphp)[ Packagist](https://packagist.org/packages/binemmanuel/servemyphp)[ RSS](/packages/binemmanuel-servemyphp/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (10)Dependencies (2)Versions (16)Used By (0)

Serve My PHP
============

[](#serve-my-php)

A light php library for building server-side applications (APIs)

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

[](#installation)

To install use composer

```
composer require binemmanuel/servemyphp
```

Usage
-----

[](#usage)

```
# ./public_html/.htaccess

RewriteEngine On

    Header set Access-Control-Allow-Origin "*"

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]

    Order allow,deny
    Deny from all

    Order allow,deny
    Deny from all

Options -Indexes

```

```
# .env

# Database Cridentials
DB_HOST =
DB_USER =
DB_PASSWORD =
DB_NAME =
DB_CHASET = 'utf8mb4'
```

```
# ./public_html/index.php

use Binemmanuel\ServeMyPhp\Router;
use Binemmanuel\ServeMyPhp\Request;
use Binemmanuel\ServeMyPhp\Response;
use Binemmanuel\ServeMyPhp\Database;

$database = (new Database($_ENV))->mysqli();
$app = new Router($database);

$app->get('/api/v1/get/message', function (Request $req, Response $res) use ($database) {
     $res::sendJson(["message" : "Hello, world"]);
});

$app->run();
```

### Start Dev Server

[](#start-dev-server)

```
php -S 0.0.0.0:8080 -t public_html
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Recently: every ~3 days

Total

15

Last Release

1351d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/binemmanuel-servemyphp/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.9k556.2M21.4k](/packages/laravel-framework)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k6.0M777](/packages/sylius-sylius)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k99.8M354](/packages/laravel-horizon)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k15.0M69](/packages/knuckleswtf-scribe)[google/gax

Google API Core for PHP

268121.1M633](/packages/google-gax)[illuminate/queue

The Illuminate Queue package.

20433.0M1.8k](/packages/illuminate-queue)

PHPackages © 2026

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