rikbruil/specification
Implements the Specification pattern for Laravel, letting you encapsulate query constraints and business rules as reusable, composable classes. Combine specifications with and/or/not operators and apply them directly to Eloquent queries for cleaner, testable filtering logic.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| php-standard-library/fun | 0.86 | Functional programming utilities for PHP: compose and decorate functions, control execution, and build pipelines with small, reusable higher-order helpers. | 1 | 1 | 0 | 28K | 0 | 21.6 | 64.9 | MIT | 1 week ago | |
| php-standard-library/type | 0.86 | Runtime type validation for PHP built on the Parse, Don't Validate principle: coerce and assert unstructured input into well-typed data, with clear errors when values don't match. | 1 | 1 | 0 | 114K | 0 | 21.4 | 64.8 | MIT | 1 week ago | |
| rikbruil/doctrine-specification | 0.86 | A Doctrine specification-pattern package for composing reusable, testable query criteria. Combine specifications with and/or/not, apply them to repositories, and keep complex filtering logic out of entities and controllers. Supports modular filters and cleaner, more maintainable data access. | 50 | — | 7 | — | 6 | 2.5 | 3.0 | MIT | — |
|
| ceddyg/query-builder-repository | 0.85 | ceddyg/query-builder-repository is a Laravel package that layers a repository abstraction over the fluent query builder, giving you a clean, reusable data layer for your models. It streamlines CRUD, filtering, and query organization so controllers and services stay lean, readable, and testable. | 11 | — | 7 | — | 3 | 1.0 | 0.4 | — | — | |
| nwidart/laravel-normalizer | 0.85 | A Laravel package for normalizing data into consistent, predictable formats. Define custom normalizers to clean and transform input, making validation and storage simpler across your application. | 12 | — | 2 | — | 0 | 0.4 | — | MIT | 10 years ago | |
| nilportugues/repository | 0.85 | nilportugues/repository provides a Laravel repository-pattern implementation that abstracts data access behind clean, testable interfaces. It supports criteria-based queries, caching, and Eloquent integration to keep controllers and services lean. | 27 | — | 5 | — | 1 | 0.4 | — | — | 9 years ago |
|
| maartenpaauw/laravel-specification-pattern | 0.85 | A Laravel package for the specification pattern, letting you encapsulate business rules into reusable, composable specifications and apply them to Eloquent queries or collections for cleaner, testable domain logic. | 15 | — | 1 | — | 0 | 8.7 | — | MIT | 7 months ago | |
| lolli42/finediff | 0.85 | Create HTML diffs between two strings with fine-grained character or word comparison. Outputs / markup, escapes HTML entities, supports multibyte strings, and exposes internal opcodes for diff processing. PHP 8.2+ in v1.1. | 13 | 13 | 3 | 489K | 0 | 3.3 | 55.6 | MIT | 1 year ago | |
| michaldudek/foundation | 0.85 | Foundation is a Laravel package that supplies reusable base classes and utilities for common application layers such as models, repositories, and services. It helps reduce boilerplate and keep project code structured, consistent, and easier to maintain. | 12 | 13 | 1 | 236 | 0 | 0.1 | 17.7 | NOASSERTION | — | |
| nilportugues/assert | 0.85 | A lightweight PHP assertion library for validating values and enforcing invariants. It provides expressive, chainable assertions that fail with clear exceptions, helping you catch invalid input early and make code contracts explicit and easy to read. | 10 | — | 3 | — | 0 | 0.1 | — | — | 10 years ago |
|
| gregorip02/restql | 0.85 | RESTQL is a Laravel package for quickly exposing Eloquent models as flexible REST APIs. It provides a query language for selecting fields, filtering, sorting, paginating, and including relationships, helping you build JSON endpoints with less boilerplate. | 127 | 128 | 5 | 1 | 3 | 1.8 | 0.4 | GPL-3.0 | 5 years ago | |
| mpociot/reflection-docblock | 0.85 | Parse and work with PHP DocBlocks via reflection. mpociot/reflection-docblock extracts summaries, descriptions, tags, params, and return types from classes, methods, and properties, making it easy to generate documentation or build tooling that relies on DocBlock metadata. | 85 | 85 | 4 | 1M | 2 | 1.5 | 55.1 | MIT | 10 years ago | |
| andydefer/domain-structures | 0.85 | A Laravel/PHP package that provides reusable domain structures and building blocks for domain-driven design. It helps organize business logic, reduce boilerplate, and keep core rules isolated from framework and infrastructure concerns for cleaner, more maintainable applications. | 0 | 0 | 0 | 2K | 0 | 0.0 | 46.3 | MIT | — | |
| frontastic/rulerz | 0.85 | frontastic/rulerz is a PHP rule engine and specification library for writing business rules once as reusable predicates and applying them to arrays, query builders, and other data sources. Use its concise DSL or PHP rules for filtering, validation, and dynamic access control. | 0 | 0 | 0 | 354 | 0 | 0.0 | 35.2 | MIT | — | |
| recca0120/eloquent-dumper | 0.85 | Eloquent Dumper adds dump() and dd() helpers to Laravel's Eloquent query builder so you can instantly inspect the generated SQL with its bindings while debugging. No query log setup needed—just chain it onto any query. Works with Eloquent models and the query builder. | 29 | — | 1 | — | 2 | 0.9 | — | MIT | 2 years ago | |
| d4h/finediff | 0.85 | A PHP implementation of the FineDiff algorithm for generating compact, granular diffs between strings. It supports character, word, and line-level comparisons and can render HTML or plain-text output, making it useful for version tracking, wikis, and collaborative editing. | 14 | 15 | 10 | 74K | 3 | 1.2 | 51.6 | MIT | — | |
| bruli/php-value-objects | 0.85 | A lightweight PHP library for building immutable value objects with typed primitive wrappers and validation. bruli/php-value-objects helps enforce domain invariants, reduce primitive obsession, and keep Laravel or any PHP codebase clearer and safer. | 43 | 43 | 13 | 580 | 1 | 0.7 | 15.9 | MIT | — | |
| symftony/xpression | 0.84 | PHP expression language that parses and compiles dynamic string expressions, letting you safely evaluate configurable logic with custom functions, variables, and operators—ideal for business rules, configs, and validation. | 17 | — | 2 | — | 1 | 0.3 | — | MIT | — |
|
| php-standard-library/option | 0.84 | Option type for PHP with explicit Some/None presence semantics, replacing nullable values so absence is handled intentionally instead of silently. Part of the PHP Standard Library. | 1 | 1 | 0 | 113K | 0 | 21.7 | 65.0 | MIT | 1 week ago | |
| black/common | 0.83 | Common utilities for Black projects: an abstract Doctrine Manager helper with convenience methods plus simple specification classes (and/or/not). Install via Composer and reuse across apps needing lightweight Doctrine-oriented shared code. | 1 | 1 | 0 | 0 | 0 | 0.0 | — | MIT | — |
How can I help you explore Laravel packages today?