fast-forward / container
Fast Forward PSR-11 Container utility classes
v1.1.0
2025-04-20 03:35 UTC
Requires
- php: ^8.1
- fast-forward/config: ^1.1
- php-di/php-di: ^7.0
- psr/container: ^1.0 || ^2.0
Requires (Dev)
- coisa/php-cs-fixer: ^2.1
- phpspec/prophecy-phpunit: ^2.3
- phpunit/phpunit: ^9.6 || ^10.5 || ^11.5
This package is auto-updated.
Last update: 2025-04-21 13:20:16 UTC
README
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.
✨ Features
- Aggregates multiple containers
- Caches resolved entries
- Integrates with
php-di
- First-class support for configuration containers
- PSR-11 compliant
🚀 Installation
composer require fast-forward/container
🛠️ Usage
use FastForward\Container\container; use FastForward\Config\ArrayConfig; $config = new ArrayConfig([ 'dependencies' => [ SomeService::class => DI\create(SomeService::class), ], ]); $container = container($config); // Retrieve service $service = $container->get(SomeService::class);
📄 License
This package is licensed under the MIT License. See the LICENSE file for more details.