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 2 can be achieved using the DoctrineORM bundle. This bundle contains
configuration options for the repository. To replace the default repository type, provide a class name of
Happyr\DoctrineSpecification\Repository\EntitySpecificationRepository.
// Application configuration
use Happyr\DoctrineSpecification\Repository\EntitySpecificationRepository;
return [
'doctrine' => [
'configuration' => [
'orm_default' => [
'default_repository_class' => EntitySpecificationRepository::class,
],
],
],
];
How can I help you explore Laravel packages today?