sy / container
Dependency injection container
1.0.1
2020-12-08 02:59 UTC
Requires
- php: >=5.6.0
- psr/container: ^1.0
Requires (Dev)
- phpunit/phpunit: ^9
Suggests
None
Provides
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-08-08 15:17:34 UTC
README
Dependency injection container
Installation
Install the latest version with
$ composer require sy/container
Basic Usage
<?php use Sy\Container; $container = new Container(); // Set an entry $container->foo = function() { return 'hello'; }; // Get an entry $var = $container->foo; // Check an entry if (isset($container->foo))