dhii / di
A DI container implementation
Installs: 2 896
Dependents: 3
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 1
Open Issues: 0
Requires
- php: ^5.4 | ^7.0
- dhii/args-list-validation: ^0.1
- dhii/callback-abstract: ^0.1-alpha5
- dhii/container-helper-base: ^0.1-alpha5
- dhii/data-container-abstract: ^0.1-alpha1
- dhii/data-container-base: ^0.1-alpha2
- dhii/data-container-interface: ^0.1 | ^0.2
- dhii/data-object-abstract: ^0.1-alpha1
- dhii/di-abstract: ^0.2-alpha1
- dhii/exception: ^0.1-alpha5
- dhii/i18n-helper-base: ^0.1
- dhii/invocable-base: ^0.1
- dhii/normalization-helper-base: ^0.1
- dhii/validation-base: ^0.2-alpha2
Requires (Dev)
- codeclimate/php-test-reporter: <=0.3.2
- dhii/exception-interface: ^0.2-alpha3
- dhii/invocable-interface: ^0.1
- dhii/memoize-memory: ^0.2
- dhii/php-cs-fixer-config: ^0.1
- dhii/simple-cache-interface: ^0.1
- dhii/stringable-interface: ^0.1
- phpunit/phpunit: ^4.8
- psr/container: ^1.0
- ptrofimov/xpmock: ^1.1
Provides
This package is auto-updated.
Last update: 2019-05-10 11:35:05 UTC
README
Details
Simple, granular, standards-compliant DI container implementations.
Features
- Is an implementation of the PSR-11 standard.
- Uses some other standards published separately.
- Includes support for the delegate lookup feature, a.k.a. composite containers, with intuitive override order.
- Easily extensible and adaptable.
Classes
CachingContainer
- A simple container that resolves callable service definitions and caches the result, guaranteeing the same instance every time. Cache sold separately.ContainerAwareCachingContainer
- A container that is aware of another container, perhaps a parent one. Callable definitions will receive the top-most parent container of the chain when resolving. Use it withCompositeContainer
to implement theAbstractBaseContainer
- Common functionality for DI containers that store services as internal data.AbstractBaseCachingContainer
- Common functionality for DI containers that cache resolved services.