PHPackages                             ferfabricio/rest-get-filters - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. ferfabricio/rest-get-filters

ActiveLibrary

ferfabricio/rest-get-filters
============================

Filters for Laravel applications using Eloquent scopes

1.0.2(3y ago)08MITPHPPHP ^7.2.5|^8.0CI failing

Since Aug 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ferfabricio/rest-get-filters)[ Packagist](https://packagist.org/packages/ferfabricio/rest-get-filters)[ RSS](/packages/ferfabricio-rest-get-filters/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

[![Build Status](https://camo.githubusercontent.com/5674cfec899bd8b7271eb99b9dcae9b64fdea5d4e54f927b8475f45298d52da9/68747470733a2f2f7472617669732d63692e6f72672f666572666162726963696f2f726573742d6765742d66696c746572732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ferfabricio/rest-get-filters) [![Quality Gate Status](https://camo.githubusercontent.com/54f4cc481418303f6d6dad89e97b3fb8a3d7aa6dd0201555a75a2ac6d43a6401/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d666572666162726963696f5f726573742d6765742d66696c74657273266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/dashboard?id=ferfabricio_rest-get-filters) [![Coverage](https://camo.githubusercontent.com/ddbb45056e3ffa6543b8894540a51c934c4ee0b0123107ffea68f9cc0ee1e0cd/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d666572666162726963696f5f726573742d6765742d66696c74657273266d65747269633d636f766572616765)](https://sonarcloud.io/dashboard?id=ferfabricio_rest-get-filters) [![Vulnerabilities](https://camo.githubusercontent.com/873d6ae7562a840fe54b335bd68a706cbda39d7db5b323fd94f5b1d7176a4e3b/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d666572666162726963696f5f726573742d6765742d66696c74657273266d65747269633d76756c6e65726162696c6974696573)](https://sonarcloud.io/dashboard?id=ferfabricio_rest-get-filters)

rest-get-filters
================

[](#rest-get-filters)

Filters for GET requests to be used in Laravel projects

Motivation
----------

[](#motivation)

There are several approaches to create filters in GET requests, including this one more approach to the subject, but many of them generate a lot of work for the developer to do something simple.

The main objective of this package is to do something simplistic and that works well.

Instalation
-----------

[](#instalation)

```
composer require ferfabricio/rest-get-filters

```

Usage
-----

[](#usage)

Steps to setup this package:

1. Add the Filterable trait;
2. Define the filters;
3. Apply the filters in you query;

### Add the Filterable trait

[](#add-the-filterable-trait)

As a example model:

```
