Download the PHP package decodelabs/pandora without Composer
On this page you can find all versions of the php package decodelabs/pandora. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download decodelabs/pandora
More information about decodelabs/pandora
Files in decodelabs/pandora
Package pandora
Short Description Potent PSR-11 depdency injection container
License MIT
Informations about the package pandora
Pandora
Potent PSR-11 dependency injection container for PHP
Pandora offers all of the usual benefits of a solid DI container structure with some extra majic juju sprinkled in.
Get news and updates on the DecodeLabs blog.
Installation
Usage
Instantiate a new Container
to keep your important objects organised:
Bind instances or classes to interfaces and retrieve them when you need them:
Groups allow for multiple instances to be bound to one interface:
Aliases can be useful when retrieving objects without repeating the interface:
Retrieval
Parameters can be passed to constructors of implementation classes:
Containers also have ArrayAccess aliased to get / bind / has / remove:
Access the binding controllers with member names:
Events
React to events on the container:
Service providers
Implement the Provider
interface and register it for lazy loaded mass-bindings with virtually no overhead:
Licensing
Pandora is licensed under the MIT License. See LICENSE for the full license text.
All versions of pandora with dependencies
psr/container Version ^2
decodelabs/archetype Version ^0.3
decodelabs/exceptional Version ^0.5
decodelabs/glitch-support Version ^0.5
decodelabs/slingshot Version ^0.1.12