sy / container
Dependency injection container
Installs: 1 372
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
This package is auto-updated.
Last update: 2025-09-08 13:07:42 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))