PHPackages                             fast-forward/container - 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. fast-forward/container

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

fast-forward/container
======================

Fast Forward PSR-11 Container utility classes

v1.6.0(2mo ago)0809[1 issues](https://github.com/php-fast-forward/container/issues)7MITPHPPHP ^8.3CI passing

Since Apr 20Pushed 2mo agoCompare

[ Source](https://github.com/php-fast-forward/container)[ Packagist](https://packagist.org/packages/fast-forward/container)[ Docs](https://github.com/php-fast-forward)[ RSS](/packages/fast-forward-container/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (10)Dependencies (14)Versions (12)Used By (7)

FastForward\\Container
======================

[](#fastforwardcontainer)

A PSR-11 compliant aggregate container for PHP, designed to unify and resolve services across multiple container implementations. Built to work seamlessly with `php-di`, configuration objects, and custom container stacks.

[![PHP Version](https://camo.githubusercontent.com/c9b19f1cbf8aefb8c278c8b5d392b64401164a08fced6ccbf376b32135d6714f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e332d3737374242343f6c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://www.php.net/releases/)[![Composer Package](https://camo.githubusercontent.com/9ed9ae213a23e368fbd1945002975ffd9f11edbee11adcdb784959a38bad9651/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6d706f7365722d666173742d2d666f7277617264253246636f6e7461696e65722d4632384431412e7376673f6c6f676f3d636f6d706f736572266c6f676f436f6c6f723d7768697465)](https://packagist.org/packages/fast-forward/container)[![PSR-11](https://camo.githubusercontent.com/1476c9bd279218794173c3d24e2c9ec06bedb3bfcff397debe19894ea360a303/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5053522d2d31312d636f6e7461696e65722d3737374242343f6c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://www.php-fig.org/psr/psr-11/)[![Tests](https://camo.githubusercontent.com/a21cd950eb688b146a79d5e94fa3c18acf542e255dc0f4211832572227d2f3f5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7068702d666173742d666f72776172642f636f6e7461696e65722f74657374732e796d6c3f6c6f676f3d676974687562616374696f6e73266c6f676f436f6c6f723d7768697465266c6162656c3d746573747326636f6c6f723d323243353545)](https://github.com/php-fast-forward/container/actions/workflows/tests.yml)[![Coverage](https://camo.githubusercontent.com/783041b70aa9cfca2a0969ddc49e11178a3367b14165ef787853fdc3075f43b3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d706870756e69742d3441444538303f6c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://php-fast-forward.github.io/container/coverage/index.html)[![Docs](https://camo.githubusercontent.com/8fe9a0b5010217ea95cd8cb2098b6fc79265f8a72b42d5bbc545618ce5fbe68b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6465706c6f796d656e74732f7068702d666173742d666f72776172642f636f6e7461696e65722f6769746875622d70616765733f6c6f676f3d72656164746865646f6373266c6f676f436f6c6f723d7768697465266c6162656c3d646f6373266c6162656c436f6c6f723d31453239334226636f6c6f723d333842444638267374796c653d666c6174)](https://php-fast-forward.github.io/container/index.html)[![License](https://camo.githubusercontent.com/20ac1bf12d8bb1bd015247fd024c6f03c13b1a5b4501a7c3bf792ac7a39a7a84/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7068702d666173742d666f72776172642f636f6e7461696e65723f636f6c6f723d363437343842)](LICENSE)[![GitHub Sponsors](https://camo.githubusercontent.com/d61f432861a7c60e0a9620738dffd3b884bcf392c86e48a2cc87ea57a077e90a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73706f6e736f72732f7068702d666173742d666f72776172643f6c6f676f3d67697468756273706f6e736f7273266c6f676f436f6c6f723d776869746526636f6c6f723d454334383939)](https://github.com/sponsors/php-fast-forward)

✨ Features
----------

[](#-features)

- Aggregates multiple containers
- Caches resolved entries
- Integrates with `php-di`
- First-class support for configuration containers
- PSR-11 compliant

🚀 Installation
--------------

[](#-installation)

```
composer require fast-forward/container
```

🛠️ Usage
--------

[](#️-usage)

```
use FastForward\Container\ContainerInterface;
use function FastForward\Container\container;
use FastForward\Config\ArrayConfig;

$config = new ArrayConfig([
    ContainerInterface::class => [
        SomeServiceProvider::class, // strings will be initialized with a new call
        SomePsr11Container::class, // strings should be initializable with a simple new call
        new OtherServiceProvider('withArgument'), // objects that implement Interop\Container\ServiceProviderInterface
        new ServiceManager($dependencies), // objects that implement Psr\Container\ContainerInterface
    ],
]);

$container = container($config);

// or using the container function directly with a configuration variadic
// $container = container(
//     SomeServiceProvider::class,
//     SomePsr11Container::class,
//     new ApplicationConfig(), // that implements ConfigInterface with the ContainerInterface key
//     new OtherServiceProvider('withArgument'),
//     new ServiceManager($dependencies),
// );

// Retrieve service
$service = $container->get(SomeService::class);
```

📄 License
---------

[](#-license)

This package is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.

🔗 Links
-------

[](#-links)

- [Repository](https://github.com/php-fast-forward/container)
- [Packagist](https://packagist.org/packages/fast-forward/container)
- [RFC 2119](https://datatracker.ietf.org/doc/html/rfc2119)
- [PSR-11 Container Interface](https://www.php-fig.org/psr/psr-11/)

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance84

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.1% 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 ~38 days

Recently: every ~72 days

Total

10

Last Release

88d ago

PHP version history (2 changes)v1.0.0PHP ^8.1

v1.6.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/bb658791d4db57e57ac164a268f94340ddff4d1ee0aad1358d4593847051a9fe?d=identicon)[coisa](/maintainers/coisa)

---

Top Contributors

[![coisa](https://avatars.githubusercontent.com/u/426835?v=4)](https://github.com/coisa "coisa (105 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")

---

Tags

phpphp-containerphp-librarypsr-11

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fast-forward-container/health.svg)

```
[![Health](https://phpackages.com/badges/fast-forward-container/health.svg)](https://phpackages.com/packages/fast-forward-container)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k50.1M314](/packages/api-platform-core)[api-platform/state

API Platform state interfaces

244.3M112](/packages/api-platform-state)[rareloop/lumberjack-core

A powerful MVC framework for the modern WordPress developer. Write better, more expressive and easier to maintain code

40159.2k19](/packages/rareloop-lumberjack-core)[elie29/zend-phpdi-config

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

19244.7k8](/packages/elie29-zend-phpdi-config)

PHPackages © 2026

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