Download the PHP package jurager/filterable without Composer
On this page you can find all versions of the php package jurager/filterable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package filterable
Jurager/Filterable
A Laravel package that adds JSON:API-compatible filter and sort query parameter support to Eloquent models.
Features:
- Declarative
$filterableand$sortablearrays on the model — no boilerplate controllers - Full operator set:
eq,ne,gt,gte,lt,lte,like,in,nin,null,not_null,between,not_between,tree - Relation filtering via
whereHassubqueries and pivot column support - Filtered eager-loading with
filter[included.*] - OR / AND condition groups
- Field, relation, and sort resolver interfaces for custom SQL
- Full-result caching (Redis / Memcached) with automatic tag-based invalidation
- Custom field, relation, and sort resolvers for extending filter behaviour
- Tree descendant expansion via the
treeoperator
Requirements
- PHP 8.2+
- Laravel 11+
Installation
Add HasFilterable to your model and declare allowed fields:
Apply in the controller:
Request:
Documentation
To learn more about filtering, sorting, relations, caching, and advanced usage please go to the Documentation.
License
This package is open-sourced software licensed under the MIT license.
All versions of filterable with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.4
illuminate/database Version ^11.0|^12.0|^13.0
illuminate/http Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0
illuminate/database Version ^11.0|^12.0|^13.0
illuminate/http Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0
The package jurager/filterable contains the following files
Loading the files please wait ...