fast-forward/container

Fast Forward PSR-11 Container utility classes

v1.1.0 2025-04-20 03:35 UTC

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.

🔗 Links