PHPackages                             thgs/amphp-bootstrap - 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. thgs/amphp-bootstrap

ActiveLibrary[Framework](/categories/framework)

thgs/amphp-bootstrap
====================

A package that guides the boot process of an Amphp HTTP server

v0.5.0(1y ago)016MITPHPPHP &gt;=8.2

Since Jan 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/thgs/amphp-bootstrap)[ Packagist](https://packagist.org/packages/thgs/amphp-bootstrap)[ RSS](/packages/thgs-amphp-bootstrap/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (12)Versions (9)Used By (0)

amphp-bootstrap
---------------

[](#amphp-bootstrap)

Note that this package is at an **experimental/exploratory** stage.

This is a convenience package that boots an [Amphp HTTP server](https://amphp.org/http-server). It exports configuration objects that are used as input and loaders for the config for a few basic formats. It requires a container implementation to be adapted to an interface, however some basic adapters are already provided for some container packages.

### Features

[](#features)

- With the container integration you can setup your routes and use DI.

### Usage

[](#usage)

You can boot it like this, example below is with Auryn Injector.

```
use Auryn\Injector;
use thgs\Bootstrap\Bootstrap;
use thgs\Bootstrap\Config\Loader\PhpFileLoader;
use thgs\Bootstrap\DependencyInjection\AurynInjector;

require \dirname(__DIR__) . '/vendor/autoload.php';

// Loader for config.php which contains the main configuration
$loader = new PhpFileLoader(getcwd() . '/' . ($argv[1] ?? 'config.php'));

// Pick an injector
$injector = new AurynInjector(new Injector());

// Finally, boot everything
new Bootstrap($loader->load(), $injector);
```

See [`examples/`](https://github.com/thgs/amphp-bootstrap/tree/master/examples)directory for a sample configuration. All configuration objects contain the various options you could set up using Amphp directly as arguments of the constructor.

Out of the box this package supports the below injectors/containers:

- [Auryn](https://github.com/rdlowrey/Auryn)
- [Illuminate Container](https://github.com/illuminate/container)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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.

###  Release Activity

Cadence

Every ~33 days

Recently: every ~57 days

Total

8

Last Release

619d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/08c186b51dd688533c147618687a391ac764aafcff5efc2cbb2005cc28befef6?d=identicon)[thgs](/maintainers/thgs)

---

Top Contributors

[![thgs](https://avatars.githubusercontent.com/u/8940963?v=4)](https://github.com/thgs "thgs (53 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/thgs-amphp-bootstrap/health.svg)

```
[![Health](https://phpackages.com/badges/thgs-amphp-bootstrap/health.svg)](https://phpackages.com/packages/thgs-amphp-bootstrap)
```

###  Alternatives

[laravel/prompts

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

708181.8M596](/packages/laravel-prompts)[danog/madelineproto

Async PHP client API for the telegram MTProto protocol.

3.4k855.0k18](/packages/danog-madelineproto)[laravel/pail

Easily delve into your Laravel application's log files directly from the command line.

91245.3M590](/packages/laravel-pail)[pestphp/pest-plugin-browser

Pest plugin to test browser interactions

1241.7M99](/packages/pestphp-pest-plugin-browser)

PHPackages © 2026

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