laravel-enso / filters
Search and interval helpers for Laravel Enso
3.0.2
2026-04-21 15:25 UTC
Requires
- php: ^8.0
- laravel-enso/helpers: ^4.0
- dev-master
- 3.0.2
- 3.0.1
- 3.0.0
- 2.4.0
- 2.3.3
- 2.3.2
- 2.3.1
- 2.3.0
- 2.2.1
- 2.2.0
- 2.1.1
- 2.1.0
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.0.12
- 1.0.11
- 1.0.10
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-upgrade/laravel13-core12
- dev-codex/phpunit-cleanup
- dev-update/removeLaravelDependecy
- dev-feature/ensov7
- dev-upgrade/enso6-dr
- dev-upgrade/enso6
- dev-upgrade/laravel8
- dev-fixes/stylci
This package is auto-updated.
Last update: 2026-04-21 15:26:07 UTC
README
Description
Filters provides reusable search and date-interval helpers for Laravel Enso and standalone Laravel code.
The package includes a query search helper that supports multiple search modes and relation-aware matching, plus an interval iterator that builds hourly, daily, monthly, or yearly segments across predefined or custom ranges.
It has no routes or migrations. It is a pure helper package.
Installation
Install the package:
composer require laravel-enso/filters
Features
- Full-text, exact-match, starts-with, ends-with, and negated search modes.
- Support for custom comparison operators.
- Search across direct attributes and related attributes.
- Interval generation for today, week, month, year, custom, and all-time ranges.
- Time-segment labels suitable for charts and aggregate dashboards.
Usage
Search a query:
use LaravelEnso\Filters\Services\Search; $query = new Search(User::query(), ['name', 'email'], 'john'); $results = $query->handle();
Build an interval:
use LaravelEnso\Filters\Enums\Intervals; use LaravelEnso\Filters\Services\Interval; $interval = new Interval(Intervals::ThisMonth);
API
Services
LaravelEnso\\Filters\\Services\\SearchLaravelEnso\\Filters\\Services\\Interval
Enums
ComparisonOperatorsSearchModesIntervalsTimeSegmentsOperationsAdjustments
Depends On
Required Enso packages:
Companion frontend package:
Contributions
are welcome. Pull requests are great, but issues are good too.
Thank you to all the people who already contributed to Enso!