ecfectus / manager
A simple driver based manager trait to use multiple drivers for a set of functionality
dev-master
2016-10-04 19:10 UTC
Requires
- php: >=7.0.0
Requires (Dev)
- phpdocumentor/phpdocumentor: 2.*
- phpunit/phpunit: ^5.5.0
This package is not auto-updated.
Last update: 2024-10-30 20:51:13 UTC
README
A simple driver based manager trait to use multiple "drivers" for a set of functionality.
Obviously inspired and mostly ported from the Laravel framework, this trait allows you to define multiple "drivers" that all implement an interface defined by the manager class.
Whats slightly different is the functionality is wrapped up as a trait and not a class that must be extended, which offers more flexibility.
On top of that it validates the instances returned, you must define at least one interface the drivers implement, if they dont an exception will be thrown.