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.3.0(1y ago)04.2k↑44.4%MITPHPPHP ^8.1

Since Aug 15Pushed 1y 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 1mo ago

READMEChangelog (1)Dependencies (10)Versions (7)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

35

—

LowBetter than 80% of packages

Maintenance47

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81% 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 ~245 days

Total

5

Last Release

389d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4aeeb96bac7f8a2672a4e5f756e648317313d24c00870e0926e9da41b0e8148b?d=identicon)[sloth-dev-guy](/maintainers/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 (34 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

### 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.1k7.2M71](/packages/mongodb-laravel-mongodb)[dyrynda/laravel-model-uuid

This package allows you to easily work with UUIDs in your Laravel models.

4802.8M8](/packages/dyrynda-laravel-model-uuid)[pdphilip/elasticsearch

An Elasticsearch implementation of Laravel's Eloquent ORM

145360.2k4](/packages/pdphilip-elasticsearch)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[toponepercent/baum

Baum is an implementation of the Nested Set pattern for Eloquent models.

3154.7k](/packages/toponepercent-baum)[friendsofcat/laravel-couchbase

A Couchbase based Eloquent model and Query builder for Laravel

1430.8k](/packages/friendsofcat-laravel-couchbase)

PHPackages © 2026

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