PHPackages                             sloth-dev-guy/searches - 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. [Database &amp; ORM](/categories/database)
4. /
5. sloth-dev-guy/searches

ActiveLibrary[Database &amp; ORM](/categories/database)

sloth-dev-guy/searches
======================

Perform searches with Eloquent models using an array-like API setup

0.4.0(1w ago)04.4k—8.9%MITPHPPHP ^8.1

Since Aug 15Pushed 1w ago1 watchersCompare

[ Source](https://github.com/sloth-dev-guy/eloquent-searches)[ Packagist](https://packagist.org/packages/sloth-dev-guy/searches)[ Docs](https://github.com/sloth-dev-guy/searches)[ RSS](/packages/sloth-dev-guy-searches/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (22)Versions (8)Used By (0)

Eloquent Searches
-----------------

[](#eloquent-searches)

Are you tired of write **if, where and join statements in all your search methods** as if tomorrow never comes, then this might be a solution for you!

Perform searches with Eloquent models using an array-like API setup.

*This library is just a query-builder translator, so in the end it uses exactly the same methods.*

- [Installation](#installation)
    - [Laravel](#laravel)
    - [Lumen](#lumen)
- [Configuration](#configuration)
- [Basic Usage](#basic-usage)
- [Where's](#wheres)
    - [Basic Usage](#basic-usage-2)
    - [Available operations](#available-operations)
- [Eloquent](#eloquent)
    - [Model Composition](#model-composition)
    - [Custom Where's](#custom-wheres-1)
- [Join Relationships](#relationships)
    - [Basic Usage](#basic-usage-3)
    - [Aliases](#aliases)
    - [Custom Where's](#custom-wheres-2)
- [Order By](#order-by)
    - [Basic Usage](#basic-usage-4)
    - [Multiple Columns](#order-many-columns)
- [Select](#select)
- [Eager Loading](#eager-loading)
- [Extending](#extending)
    - [Custom Join Types](#custom-joins)
    - [Custom Where's](#custom-wheres-3)
    - [IOC](#IOC)

###  Health Score

48

—

FairBetter than 93% of packages

Maintenance98

Actively maintained with recent releases

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.8% 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 ~281 days

Recently: every ~176 days

Total

6

Last Release

10d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/111297586?v=4)[Telmo Rafael](/maintainers/sloth-dev-guy)[@sloth-dev-guy](https://github.com/sloth-dev-guy)

---

Top Contributors

[![sloth-dev-guy](https://avatars.githubusercontent.com/u/111297586?v=4)](https://github.com/sloth-dev-guy "sloth-dev-guy (36 commits)")[![kytel0925](https://avatars.githubusercontent.com/u/10521924?v=4)](https://github.com/kytel0925 "kytel0925 (6 commits)")[![telmorafael](https://avatars.githubusercontent.com/u/10576167?v=4)](https://github.com/telmorafael "telmorafael (2 commits)")

---

Tags

searchlaraveldatabasegeneratormodeleloquentquery builder

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/sloth-dev-guy-searches/health.svg)

```
[![Health](https://phpackages.com/badges/sloth-dev-guy-searches/health.svg)](https://phpackages.com/packages/sloth-dev-guy-searches)
```

###  Alternatives

[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.4M96](/packages/mongodb-laravel-mongodb)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[illuminate/database

The Illuminate Database package.

2.8k54.9M11.6k](/packages/illuminate-database)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M193](/packages/laravel-ai)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)

PHPackages © 2026

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