PHPackages                             elephox/miniphox-framework - 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. elephox/miniphox-framework

ActiveLibrary[Framework](/categories/framework)

elephox/miniphox-framework
==========================

A minimal API framework based on Elephox.

v0.8.8(2y ago)0532MITPHPPHP ^8.1

Since Oct 20Pushed 2y ago1 watchersCompare

[ Source](https://github.com/elephox-dev/miniphox-framework)[ Packagist](https://packagist.org/packages/elephox/miniphox-framework)[ RSS](/packages/elephox-miniphox-framework/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (6)Versions (30)Used By (2)

Miniphox
========

[](#miniphox)

TL;DR:

```
composer create-project elephox/miniphox my-api && \
cd my-api && \
composer run serve
```

Then:

```
curl http://localhost:8008/api/greet/$(whoami)
```

Done.

### Miniphox explained as fast as possible

[](#miniphox-explained-as-fast-as-possible)

- [React HTTP server](https://reactphp.org/http) backbone (multi-threaded PHP socket server)
- [Elephox/DI](https://packagist.org/packages/elephox/di) dependency injection
- Approachable router using [PHP Attributes](https://stitcher.io/blog/attributes-in-php-8)
- Best for (small) API projects
- Fast to production with minimal effort

### Show me some code already

[](#show-me-some-code-already)

`hello-world.php`

```
