Download the PHP package kemodev/laravel-restful-filter without Composer

On this page you can find all versions of the php package kemodev/laravel-restful-filter. 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-restful-filter

Laravel RESTful Filter

A simple way to filter your query on RESTful API

Compatibility

Framework Version
Laravel 5.*, 6.*, 7.*, 8.*
Lumen 5.*, 6.*, 7.*, 8.*

Limitation

Available Search Operators

Installation

Install from composer

Use Package on your Model

Get Started

First, you need to define what field that able to filter with your API

1. Filter

There are 3 kind available method for filter:

This method usually used when using one field filter like on default datatables

2. Sorting

If you notice, that variables was associate array with key indicate the query param on URL and value was the column name.

3. Usage

The most basic one, you can use like these

with this code, it will assume that you produce url like
https://[email protected]&sort=name_asc

But the $filter variables take scope to wide, because you may have another query params that not related for filter your data. The best practice that i assume was write your code like these

with this code, it will assume that you produce url like
https://your-domain.dev?filters[name]=febryan&filters[email][email protected]&sort=name_asc&signature=123qweasdzxc

For using available search operator on filter, you can input your query params like these:

For change direction on sorting, you can input your query params like these:

Or you want declare multiple sorting, just type your query params like these: sort=name_asc,email_desc

Contributing

Any contributions welcome! but if you are busy to contribute or you don't know how to contribute because seeing my ugly code, you can do thing on below to declare your contributions.

Stars the project

If you find this package useful and you want to encourage me to maintain and work on it, Just press the star button to declare your willing.

Reward me with a cup of tea 🍵

Send me as much as a cup of tea worth in your country, so I'll have the energy to maintain this package.

Ethereum: 0x8a43C741519ff8447c033E9D0a49F94A6EB76047


All versions of laravel-restful-filter with dependencies

PHP Build Version
Package Version
Requires php Version ^5.5|^7.0|^8.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 kemodev/laravel-restful-filter contains the following files

Loading the files please wait ...