Download the PHP package thumbtack/ttinjector without Composer
On this page you can find all versions of the php package thumbtack/ttinjector. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download thumbtack/ttinjector
More information about thumbtack/ttinjector
Files in thumbtack/ttinjector
Download thumbtack/ttinjector
More information about thumbtack/ttinjector
Files in thumbtack/ttinjector
Vendor thumbtack
Package ttinjector
Short Description Construct anything using dependency injection
License MIT
Homepage https://github.com/thumbtack/ttinjector
Package ttinjector
Short Description Construct anything using dependency injection
License MIT
Homepage https://github.com/thumbtack/ttinjector
Keywords dependency-injection
Please rate this library. Is it a good library?
Informations about the package ttinjector
ttinjector
This is a simple dependency injector.
It works in two stages. First, you register all the dependencies and describe how they relate to each other. Then, you build an injector out of those dependencies that can inject the values you have added.
Installation
To install, use composer and run:
composer require thumbtack/ttinjector
How to use the injector:
1. Create a Dependencies object:
2. Add some dependencies:
3. Build the injector:
The build_injector()
function will check to make sure there aren't any errors in the dependencies
you've set up (missing dependencies or dependency cycles).
Injector objects are immutable.
4. Inject your dependencies!
All versions of ttinjector with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4
The package thumbtack/ttinjector contains the following files
Loading the files please wait ....