Crafty is a PHP 5 dependency injection container
Crafty was developed out of necessity for another widely adopted project of mine in order to make a more manageable, more flexible and easier to test code base. The driving force behind using a dependency injection container is to minimize the magnitude of coupling between units of code inside an application.
Coupling: The degree to which groups within a program (e.g. methods or class definitions) depend on each other.
Using Crafty in your projects helps to:
- Increase your chances of re-using units of code outside of your project
- Quickly change behaviours
- Improve the flexibility of your API
- Make unit testing easier
Crafty is fully unit tested, runs under E_STRICT and is easily configured for use "out of the box".