IOC (Inversion of Control) for PHP library lets implement dependency injection pattern