Code
Specifications — added 09/25/2008
A specifications library for PHP5 implementing the ideas put forth by Eric Evans and Martin Fowler. With it, you can build extensible and re-usable specifications for validating and filtering objects. Read Evans and Fowler’s original design document for more information.
A simple service locator class for PHP 5. An abstract class or interface is bound to a concrete implementation and stored in the Locator. When the concrete class is required, the Locator is used to get an instance of the abstract class. This keeps the client from being bound to a specific implementation and knowledge of what objects should be instantiated for which interfaces in one place.