Registry / utility / opine-container

opine-container

JSON →
library2.0.13phppackagistunverified

A service container for dependency injection in PHP applications.

composer require opine/container
INSTALL
IMPORT
SIG · OPINE-CONTAINER
O
opine-container
utilityphpv2.0.13
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Container
use Opine\Container\Container;

Create a container, register a service, and retrieve it.

use Opine\Container\Container; $container = new Container(); $container->set('db', function() { return new PDO('mysql:host=localhost;dbname=test', 'user', 'pass'); }); $db = $container->get('db');
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.0.13latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
6
Meta
1
Amazon
1
Resources
opine-container — pip install opine-container · libregistry