happyr/doctrine-specification
Reusable Doctrine query Specifications for PHP. Replace messy repositories and huge QueryBuilder methods with small, composable, testable spec classes. Reduce duplication, avoid methods with many arguments, and extend queries cleanly as your app grows.
Doctrine integration with Zend Framework 1 is done manually. However, replacing the default repository type is still
simple. In the bootstrap (or wherever Doctrine is configured in the system in question), use Doctrine configurations
setDefaultRepositoryClassName method and provide an implementation of Doctrine\Common\Persistence\ObjectRepository.
A basic implementation is provided with Happyr\DoctrineSpecification\Repository\EntitySpecificationRepository.
// During Doctrine configuration
$config->setDefaultRepositoryClassName(\Happyr\DoctrineSpecification\Repository\EntitySpecificationRepository::class);
How can I help you explore Laravel packages today?