Download the PHP package inovanti-bank/inovanti-advanced-query-filters without Composer

On this page you can find all versions of the php package inovanti-bank/inovanti-advanced-query-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 inovanti-advanced-query-filters

Inovanti Advanced Query Filters

Inovanti Advanced Query Filters is a Laravel package that provides an easy and flexible way to apply advanced query filters to your Eloquent queries. It supports various types of filters including date, numeric, string, array, boolean, range, and relation filters.

Installation

To install the package, you can use Composer:

Usage

Basic Usage

You can use the provided filters to apply various types of filters to your Eloquent queries. Here is an example of how to use the FilterService:

Configuring Filters in Models

You can configure the filters directly in your Eloquent models. This way, the filters will always be available whenever a query is executed on the model.

Example

Example JSON for Filters

Here are examples of the JSON structure that the frontend should send in the body of the request to apply the filters correctly:

Date Filter

Numeric Filter

String Filter

Array Filter

Boolean Filter

Null Filter

Range Filter

Relation Filter

Available Filters

The package supports the following types of filters:

Getting Filter Operator Translations

You can use the FilterService to get the translations of the available filter operators. This is useful for displaying friendly operator names to the end users on the frontend.

Example

Custom Filters

You can also create custom filters by implementing the FilterInterface. Here is an example:

Registering Custom Filters

All types of operators are available in FilterOperatorEnum

Registering Custom Filters

Once you have created a custom filter, you can register it with the FilterService:

Testing

The package comes with unit and feature tests to ensure everything works as expected. You can run the tests using PHPUnit:

To run unit tests:

To run feature tests:

Contribution

Feel free to contribute to this package by submitting pull requests or opening issues. We appreciate your feedback and help in improving the package.

License

This package is open-source software licensed under the MIT license.


Thank you for using Inovanti Advanced Query Filters! If you have any questions or need further assistance, please don't hesitate to reach out [email protected]


All versions of inovanti-advanced-query-filters with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
laravel/framework Version ^11.0|^10.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 inovanti-bank/inovanti-advanced-query-filters contains the following files

Loading the files please wait ....