Slick Dependency Injection

slick/di is an easy dependency injection container for PHP 7.1+.

It aims to be very lightweight and tries to remove a lot of the guessing and magic stuff that dependency containers use those days.

It also allows you to nest containers witch can become very useful if you have several packages that you reuse in your applications, allowing you to define containers with default dependencies in those packages for later override and usage them in your application.

There are a lot of implementations of a dependency injection container out there and some of them are really good. Some examples are the Symfony Dependency Injection Component, Zend 2 Dependency Injection, The PHP league container, or PHP-DI just to name a few.

This implementation is a result of what we thought it was the best to have in a dependency injection container.