PHPackages                             minhsieh/mini-php - 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. minhsieh/mini-php

ActiveLibrary[Framework](/categories/framework)

minhsieh/mini-php
=================

This is a mini PHP Restful framework

110PHP

Since Jun 27Pushed 7y ago1 watchersCompare

[ Source](https://github.com/minhsieh/mini-php)[ Packagist](https://packagist.org/packages/minhsieh/mini-php)[ RSS](/packages/minhsieh-mini-php/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

MiniPHP API framework
=====================

[](#miniphp-api-framework)

這是一個練習開發的API Framework，之前要開發一個PHP的RestfulAPI都會選擇使用Laravel，但由於Laravel太過於龐大，並不是每個專案都適用，所以自己嘗試開發一個比較簡易使用的PHP API Framework.

---

### Install

[](#install)

With [**Composer**](https://getcomposer.org/ "download Composer")

```
composer require minhsieh/mini-php

```

### Basic Usage

[](#basic-usage)

```
require "vendor/autoload.php";

use MiniPHP\App;

$app = new App;

# Normal Get
$app->get('/', function() use($app){
    echo "Hello World This is index";
});

# Get URI input
$app->get('/:name', function($name) use($app){
    echo "Hello $name";
})

# Json Response
$app->get('/json', function() use($app){
    $app->json(['foo' => 'bar']);
});

# Response to all other
$app->respond( function() use ( $app ){
  return $app->html(' We have a problem ', 404);
});

$app->listen();
```

### Apache2 .htaccess

[](#apache2-htaccess)

```
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7061413?v=4)[Min](/maintainers/minhsieh)[@minhsieh](https://github.com/minhsieh)

---

Top Contributors

[![minhsieh](https://avatars.githubusercontent.com/u/7061413?v=4)](https://github.com/minhsieh "minhsieh (8 commits)")

### Embed Badge

![Health badge](/badges/minhsieh-mini-php/health.svg)

```
[![Health](https://phpackages.com/badges/minhsieh-mini-php/health.svg)](https://phpackages.com/packages/minhsieh-mini-php)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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