Download the PHP package laratribe/laravel-advanced-filters without Composer

On this page you can find all versions of the php package laratribe/laravel-advanced-filters. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-advanced-filters

Laravel Advanced Filters

tests Latest Version

Declare filters once on an Eloquent model, then render them with Blade + Alpine, Livewire, Inertia (Vue/React), or no UI at all as a JSON API.

๐Ÿ“– Documentation  ยท  ๐Ÿš€ Live demo  ยท  ๐Ÿ’ป Demo source

The demo is one model with seven filters, driving a Blade + Alpine page, a Livewire page and a JSON API โ€” each page shows the code behind it.

Installation

The service provider auto-registers and the PHP side works immediately. For the shipped UI, see frontend assets.

Requires PHP 8.2+ and Laravel 10, 11, 12 or 13. Livewire 3/4 and Alpine are optional.

Quick start

1. Declare filters on the model

2. Filter and paginate

3. Render it

That's a working filter UI. See the docs for Livewire, Inertia and JSON API.

Filter types

Type Class Default operators
Text TextFilter contains, not_contains, starts_with, ends_with, equals, not_equals
Number NumericFilter equals, not_equals, >, <, โ‰ฅ, โ‰ค, between
Date DateFilter equals, >, <, between
Set SetFilter equals, not_equals, in, not_in

Plus your own, and your own operators.

The wire contract

Two plain-array shapes, no framework coupling, SemVer-stable:

Details.

Playground

A Testbench app demonstrating every frontend against a seeded SQLite model, including a custom filter type and a custom operator:

Testing

Security

NumericFilter::havingExpression() accepts raw SQL and is developer-supplied, never user input โ€” values are always bound as parameters. If you find a security issue, please email [email protected] rather than opening a public issue.

๐Ÿ‘ค Author

Ram Sharma

If you find this package useful, please consider starring the repository on GitHub!

๐Ÿ“œ License & Open Source

Laravel Advanced Filters is open-source software licensed under the MIT license.

You are completely free to use, modify and distribute this package in both personal and commercial projects. Contributions, issues and feature requests are always welcome โ€” have a look at the issues page if you'd like to contribute.


All versions of laravel-advanced-filters with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/contracts Version ^10.0|^11.0|^12.0|^13.0
illuminate/database Version ^10.0|^11.0|^12.0|^13.0
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/view Version ^10.0|^11.0|^12.0|^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package laratribe/laravel-advanced-filters contains the following files

Loading the files please wait ...