PHPackages                             wubinworks/app-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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. wubinworks/app-bootstrap

ActiveWubinworks-app-bootstrap[PSR &amp; Standards](/categories/psr-standards)

wubinworks/app-bootstrap
========================

Wubinworks App Bootstrap. This package is a component of Wubinworks App and utilizes the PHP-DI's container.

1.0.0(yesterday)01↑2900%OSL-3.0PHP

Since Jul 28Pushed yesterdayCompare

[ Source](https://github.com/wubinworks/app-bootstrap)[ Packagist](https://packagist.org/packages/wubinworks/app-bootstrap)[ Docs](https://www.wubinworks.com)[ RSS](/packages/wubinworks-app-bootstrap/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

Wubinworks App Bootstrap
========================

[](#wubinworks-app-bootstrap)

***(\*)Note this package is a component(hard dependency) of `Wubinworks App`(currently [Wubinworks Console App](https://github.com/wubinworks/console-app) only) and utilizes the [PHP-DI](https://php-di.org/)'s container.***

As this package name suggests, its main feature is to create the PHP-DI's container([PSR-11](https://www.php-fig.org/psr/psr-11/)) and launch the [`AppInterface`](#usage).

Requirements
------------

[](#requirements)

- PHP &gt;= 7.2
- [php-di/php-di](https://github.com/PHP-DI/PHP-DI) &gt;= 6.3.5

Usage
-----

[](#usage)

### `\Wubinworks\AppBootstrap\AppInterface`

[](#wubinworksappbootstrapappinterface)

All `App` types, such as HTTP, WebAPI, CLI, should implement this interface.

### `\Wubinworks\AppBootstrap\Container\ContainerInstanceHelper`

[](#wubinworksappbootstrapcontainercontainerinstancehelper)

A helper to get the `\DI\Container` instance statically.

You should stick with injecting `\Psr\Container\ContainerInterface` or `\DI\Container`. Use this class only if you cannot inject them or for debugging/testing purpose.

### Injectable dependencies

[](#injectable-dependencies)

#### `\Wubinworks\AppBootstrap\App\Bootstrap`

[](#wubinworksappbootstrapappbootstrap)

For creating PHP-DI's container. The PHP-DI's container can only be created once, so actually, this dependency is useless.

#### `\Wubinworks\AppBootstrap\App\Bootstrap\ExtensionManager`

[](#wubinworksappbootstrapappbootstrapextensionmanager)

For getting extensions by status. Status can be string `enabled` `disabled` or `all`.

Extensions are sorted by `sortOrder` in descending order. The smaller `sortOrder`, the higher priority, which means extension with smaller `sortOrder` can override extension with bigger `sortOrder`.

#### `\Wubinworks\AppBootstrap\App\Bootstrap\State`

[](#wubinworksappbootstrapappbootstrapstate)

For getting `App` state.

- Check whether developer mode is enabled
- Check whether container compilation is enabled

#### `\Wubinworks\AppBootstrap\App\Config\Env`

[](#wubinworksappbootstrapappconfigenv)

For getting the merged user environment configuration.

Read/merge environment configuration in this order:

- `/env-shared.php`
- `/env.php`

♥
-

[](#)

If you like this package or this package helped you, please ***share*** and ***give a ★☆star☆★***, it's NOT hard!

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance100

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

1d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7de965a6287fb784969afeb4b173521d3cb59c6b873b7248263abb9fc098eddd?d=identicon)[wubinworks](/maintainers/wubinworks)

---

Top Contributors

[![wubinworks](https://avatars.githubusercontent.com/u/127310257?v=4)](https://github.com/wubinworks "wubinworks (1 commits)")

---

Tags

bootstrapcontainerphp-diphp-di-containerpsr-11containerPSR-11psr11bootstrapphp-di

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wubinworks-app-bootstrap/health.svg)

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

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[php-di/php-di

The dependency injection container for humans

2.8k55.5M1.3k](/packages/php-di-php-di)[elie29/zend-phpdi-config

PSR-11 PHP-DI autowire container configurator for Laminas, Mezzio, ZF2, ZF3 and Zend Expressive applications

19248.3k8](/packages/elie29-zend-phpdi-config)[phpwatch/simple-container

A fast and minimal PSR-11 compatible Dependency Injection Container with array-syntax and without auto-wiring

1811.8k2](/packages/phpwatch-simple-container)

PHPackages © 2026

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