laravel-enso/filters is a Laravel package for search and interval helpers for laravel enso.
It currently has 0 GitHub stars and 41.538 downloads on Packagist (latest version 3.0.3).
Install it with composer require laravel-enso/filters.
Discover more Laravel packages by laravel-enso
or browse all Laravel packages to compare alternatives.
Last updated
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.
Install the package:
composer require laravel-enso/filters
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);
Manual intervals require both limits:
use Carbon\Carbon;
use LaravelEnso\Filters\Enums\Intervals;
use LaravelEnso\Filters\Services\Interval;
$interval = new Interval(
Intervals::Custom,
min: Carbon::parse('2026-05-01 00:00:00'),
max: Carbon::parse('2026-05-01 23:59:59'),
);
Validation failures are returned as LaravelEnso\Helpers\Exceptions\EnsoException
by default, which keeps UI/API consumers aligned with the standard Enso error
response. Pass ui: false when using the service outside the UI layer and you
need the native LaravelEnso\Filters\Exceptions\Interval exception:
new Interval(Intervals::Custom, ui: false);
LaravelEnso\\Filters\\Services\\SearchLaravelEnso\\Filters\\Services\\IntervalComparisonOperatorsSearchModesIntervalsTimeSegmentsOperationsAdjustmentsRequired Enso packages:
Companion frontend package:
are welcome. Pull requests are great, but issues are good too.
Thank you to all the people who already contributed to Enso!