PHPackages                             stephenlake/laravel-queryable - 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. [Search &amp; Filtering](/categories/search)
4. /
5. stephenlake/laravel-queryable

AbandonedArchivedLibrary[Search &amp; Filtering](/categories/search)

stephenlake/laravel-queryable
=============================

Laravel HTTP query parameter based model filtering and searching.

v1.0.4(7y ago)47964MITPHP

Since Oct 2Pushed 6y ago1 watchersCompare

[ Source](https://github.com/stephenlake/laravel-queryable)[ Packagist](https://packagist.org/packages/stephenlake/laravel-queryable)[ RSS](/packages/stephenlake-laravel-queryable/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (10)Dependencies (3)Versions (14)Used By (0)

Laravel Queryable
=================

[](#laravel-queryable)

[![tests](https://camo.githubusercontent.com/92652ab6d3535944376bd52aa0a40be2cd85eeccc5541749c4aa1c956a7d0b48/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7374657068656e6c616b652f6c61726176656c2d717565727961626c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/92652ab6d3535944376bd52aa0a40be2cd85eeccc5541749c4aa1c956a7d0b48/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7374657068656e6c616b652f6c61726176656c2d717565727961626c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)[![styleci](https://camo.githubusercontent.com/fba7aa871076e7c2a2547a8abd69648cd08b570b9937026af31886fd9d8865d4/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3134393034323036352f736869656c643f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/fba7aa871076e7c2a2547a8abd69648cd08b570b9937026af31886fd9d8865d4/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3134393034323036352f736869656c643f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)[![scrutinzer](https://camo.githubusercontent.com/605394541c084083039e18c53abcff03bd56213830984676e20963a2bca29678/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7374657068656e6c616b652f6c61726176656c2d717565727961626c652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/605394541c084083039e18c53abcff03bd56213830984676e20963a2bca29678/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7374657068656e6c616b652f6c61726176656c2d717565727961626c652e7376673f7374796c653d666c61742d737175617265)[![downloads](https://camo.githubusercontent.com/d252efaa012e0ba0eb8deeb47eb9f0a98d2197efc03983cebfaeb6318aee0842/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7374657068656e6c616b652f6c61726176656c2d717565727961626c652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/d252efaa012e0ba0eb8deeb47eb9f0a98d2197efc03983cebfaeb6318aee0842/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7374657068656e6c616b652f6c61726176656c2d717565727961626c652e7376673f7374796c653d666c61742d737175617265)[![release](https://camo.githubusercontent.com/1aed4e56d472cde8e97507e7d3028ff136ea385f784affb12aa3a7808131e1d9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7374657068656e6c616b652f6c61726176656c2d717565727961626c652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/1aed4e56d472cde8e97507e7d3028ff136ea385f784affb12aa3a7808131e1d9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7374657068656e6c616b652f6c61726176656c2d717565727961626c652e7376673f7374796c653d666c61742d737175617265)[![license](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)

**Laravel Queryable** is a light weight package containing simple injectable model traits with configurable attributes to perform powerful and flexible queries of your models dynamically from static HTTP routes.

Made with ❤️ by [Stephen Lake](http://stephenlake.github.io/)

No Longer Maintained ❗
----------------------

[](#no-longer-maintained-exclamation)

This package is no longer maintained as a far more flexible package exists, it is highly recommended to use [Spatie's Laravel Query Builder](https://docs.spatie.be/laravel-query-builder/v2/introduction/) instead. If you would like to take over this package as maintainer, please get in touch with me.

Getting Started
---------------

[](#getting-started)

Install the package via composer.

```
composer require stephenlake/laravel-queryable

```

Add the trait to your model:

```
use \Queryable\Traits\QueryParamFilterable;

```

Define filters on your model:

```
YourModel::withFilters(['name', 'content', 'created_at'])->get();

```

Then add dynamic queryables to your HTTP routes:

```
https://www.example.org?name=Awesome&content=*awesome*&created_at>=2018

```

This automatically adds the following to the query builder:

```
YourModel::where('name', 'Awesome')
         ->where('content', 'like', '%awesome%')
         ->where('created_at, '>=', '2018')

```

#### See [documentation](https://stephenlake.github.io/laravel-queryable/) for the full list of available operators and further usage.

[](#see-documentation-for-the-full-list-of-available-operators-and-further-usage)

License
-------

[](#license)

This library is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~20 days

Recently: every ~56 days

Total

13

Last Release

2580d ago

Major Versions

v0.0.8 → v1.0.02018-10-23

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1300442?v=4)[Stephen Lake](/maintainers/stephenlake)[@stephenlake](https://github.com/stephenlake)

---

Top Contributors

[![stephenlake](https://avatars.githubusercontent.com/u/1300442?v=4)](https://github.com/stephenlake "stephenlake (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/stephenlake-laravel-queryable/health.svg)

```
[![Health](https://phpackages.com/badges/stephenlake-laravel-queryable/health.svg)](https://phpackages.com/packages/stephenlake-laravel-queryable)
```

###  Alternatives

[awesome-nova/dependent-filter

Dependent filters for Laravel Nova

26190.2k](/packages/awesome-nova-dependent-filter)[algolia/php-dom-parser

A simple tool to turn DOM into Algolia search friendly record objects.

181.8k](/packages/algolia-php-dom-parser)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
