{"repo":"lucatume/di52","free":true,"listed":false,"github":"https://github.com/lucatume/di52","clone":"git clone https://github.com/lucatume/di52.git","description":"The dependency injection container for streamlined WordPress development. Easily manage and inject dependencies for efficient and hassle-free app creation.","language":"PHP","stars":74,"topics":["dependency-injection","php","wordpress"],"license":null,"category":"deployment-docker-iac","readme_excerpt":"A PHP 5.6+ compatible dependency injection container inspired by Laravel IOC and Pimple that works even better on newer version of PHP. A quick overview of the Container features: Auto-wiring - The Container will use Reflection to find what class should be built and how, it's almost magic. Flexible - Legacy code? Fat constructors with tons of side-effects? The Container offers auto-wiring without making it a requirement. It will adapt to existing code and will not require your code to adapt to it. Fatal error handling - On PHP 7.0+ the Container will take care of handling fatal errors that might happen at class file load time and handle them. Fast - The Container is optimized for speed as much as it can be squeezed out of the required PHP compatibility. Flexible default mode - Singleton (build at most once) and prototype (build new each time) default modes available. Global Application - Like using App::get($service)- doStuff() ? The App facade allows using the DI Container as a globally available Service Locator. PSR-11 compatible - The container is fully compatible with PSR-11 specification. Ready for WordPress and other Event-driven frameworks - The container API provides methods like callback and instance to easily be integrated with Event-driven frameworks like WordPress that require hooking callbacks to events. Service Providers - To keep your code organized, the library provides an advanced Service Provider implementation. Table of Contents - Code Example - Installatio","default_branch":null,"files":null,"tree":[],"storefront":"/r/lucatume","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lucatume/di52/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}