Download the PHP package alkhachatryan/laravel-enhanced-filters without Composer

On this page you can find all versions of the php package alkhachatryan/laravel-enhanced-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-enhanced-filters

Laravel Enhanced Filters 🛠️

Latest Version on Packagist Total Downloads

image **Want to have a filters like this? Go ahead**😎



Enhanced Filters for Laravel provide a flexible, AWS-like filtering system for filtering. You can define fields, operators, and their validation rules, then use them to filter queries efficiently. ✅

It supports multiple field types, each with their own operators. The package handles validation, ensures only supported operators are used, and integrates seamlessly with Laravel request classes. 💡

Perfect for building advanced search and filter systems without writing repetitive query logic. 🚀

This is an API(backend, no UI) implementation only

Usage

Define Enhanced Filters in your Request Class

Your request class should implement HasEnhancedFilters and use EnhancedFilters trait:

Call the filter class in your controller/service/business logic class

Send your enhanced request

The example in postman below

image

Installation

That's it.

More about the package

So the package provides the extension for your request classes for filtering.

You will be able to filter like: FIELD - FILTERING_OPERATOR - VALUE

The package provides the following field-types:

  1. BooleanFieldType
  2. DateFieldType
  3. NumericFieldType
  4. StringFieldType

Each of them have their own specific filtering operators, but also have the common ones.

(not that true and false values(i.e. boolean) should be sent as a __true__ or __false__ strings

Common filtering operators for all field types

Boolean filtering operators

Date filtering operators

Numeric filtering operators

String filtering operators

Versioning

The package has a semantic versioning X.Y.Z where X - a version of supported Laravel, Y a number of feature commits and a Z a number of bugfixes


All versions of laravel-enhanced-filters with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ^12
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 alkhachatryan/laravel-enhanced-filters contains the following files

Loading the files please wait ...