Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

chevronphp/containers

Open more actions menu

Repository files navigation

chevron/containers

Containers is a simple implementation of a registry pattern. The base container takes values and returns them, the deferred container is built to handle callables, and the reference container is meant to handle maps--wait for it--by reference.

Containers started as a pretty basic set of registry objects because you end up using them everywhere. Deferred, however, ended up making a pretty good simple DI container. But "Deferred" isn't as intuitive as "Di", which is why there is a DiInterface (for typehints) and a ServiceLoader for creating and populating the Di.

Peruse the tests or, if present, the examples directory to see usage.

See packagist for version/installation info.

Latest Stable Version Build Status

About

an implementation of the registry pattern for fun and profit

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.