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 today

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

Maturity64

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

1305d 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

[sylius/sylius

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

8.5k5.9M733](/packages/sylius-sylius)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k14.2M63](/packages/knuckleswtf-scribe)[google/gax

Google API Core for PHP

267116.3M556](/packages/google-gax)[temporal/sdk

Temporal SDK

4072.9M25](/packages/temporal-sdk)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k12](/packages/pocketmine-bedrock-protocol)

PHPackages © 2026

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