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

ActiveLibrary

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 1mo 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 59% 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

1259d 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.6k509.9M17.0k](/packages/laravel-framework)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k84.2M225](/packages/laravel-horizon)[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[stancl/tenancy

Automatic multi-tenancy for your Laravel application.

4.3k6.6M40](/packages/stancl-tenancy)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k12.2M45](/packages/knuckleswtf-scribe)[google/cloud

Google Cloud Client Library

1.2k16.2M53](/packages/google-cloud)

PHPackages © 2026

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