Download the PHP package g4/di without Composer
On this page you can find all versions of the php package g4/di. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor g4
Package di
Short Description g4 dependencies injection container based on Pimple
License MIT
Package di
Short Description g4 dependencies injection container based on Pimple
License MIT
Please rate this library. Is it a good library?
Informations about the package di
DI
DI - dependencies injection container - singleton Pimple wrapper https://github.com/silexphp/Pimple
- easy access by a method not by an array property
- no need to remember DI array keys (or go back to the DI class to look) every time you need something
- type hinting
Install
Using Composer and Packagist https://packagist.org/packages/g4/di
Usage
Services are defined by anonymous functions that returns an instance of an object. Define all services in one DI Container class inside your application:
Methods
- registerFactory($callable) - Register a service that will each time return new instance of it
- registerShare($callable) - Register a service that will each time return the same instance of it
Using the defined services
Development
Install dependencies
$ make install
Run tests
$ make test
License
(The MIT License) see LICENSE file for details...
All versions of di with dependencies
PHP Build Version
Package Version
The package g4/di contains the following files
Loading the files please wait ....