PHPackages                             sfneal/queries - 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. sfneal/queries

Abandoned → [sfneal/datum](/?search=sfneal%2Fdatum)ArchivedLibrary[Database &amp; ORM](/categories/database)

sfneal/queries
==============

Construct reusable &amp; cacheable Eloquent queries with custom filters

0.4.0(5y ago)02.1kMITPHPPHP &gt;=7.0

Since Aug 18Pushed 5y ago1 watchersCompare

[ Source](https://github.com/sfneal/queries)[ Packagist](https://packagist.org/packages/sfneal/queries)[ Docs](https://github.com/sfneal/queries)[ RSS](/packages/sfneal-queries/feed)WikiDiscussions master Synced today

READMEChangelog (7)Dependencies (5)Versions (8)Used By (0)

Queries
=======

[](#queries)

[![Packagist PHP support](https://camo.githubusercontent.com/3bd69b91c671f6afb972cf251d2632b54ffa9d5f5c068b0b97bbfc31619dfe8a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f73666e65616c2f71756572696573)](https://packagist.org/packages/sfneal/queries)[![Latest Version on Packagist](https://camo.githubusercontent.com/d740f50a0108e7911baf04b8d93846595415c710c159beaa68807a1a080e8de0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73666e65616c2f717565726965732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sfneal/queries)[![Build Status](https://camo.githubusercontent.com/1d91576362143ee9ee6000bee6373cc577f6e42dadd0d023e0f304190af93ed9/68747470733a2f2f7472617669732d63692e636f6d2f73666e65616c2f717565726965732e7376673f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://travis-ci.com/sfneal/queries)[![Quality Score](https://camo.githubusercontent.com/5c6d3b78dd81d7404173f2337f34bfd4b76bda9cba6a9fa60cd55e78cca8c706/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f73666e65616c2f717565726965732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/sfneal/queries)[![Total Downloads](https://camo.githubusercontent.com/9182537e75d476e0475254ed7c343b981023e57415d9628a8ed451974cb7dfc5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73666e65616c2f717565726965732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sfneal/queries)

Construct reusable &amp; cacheable Eloquent queries with custom filters

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require sfneal/queries
```

Usage
-----

[](#usage)

```
// Usage description here
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Stephen Neal](https://github.com/sfneal)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

PHP Package Boilerplate
-----------------------

[](#php-package-boilerplate)

This package was generated using the [PHP Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 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 ~18 days

Total

7

Last Release

2036d ago

PHP version history (3 changes)0.1.0PHP ^7.1

0.2.0PHP ^7.2

0.3.0PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/ec5fdf3b9d2183ae9c777e4aed46fd5cfd9aa4789cd05c669e5907de0b8c865c?d=identicon)[sfneal](/maintainers/sfneal)

---

Top Contributors

[![sfneal](https://avatars.githubusercontent.com/u/23200215?v=4)](https://github.com/sfneal "sfneal (35 commits)")

---

Tags

queriessfneal

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sfneal-queries/health.svg)

```
[![Health](https://phpackages.com/badges/sfneal-queries/health.svg)](https://phpackages.com/packages/sfneal-queries)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[ntanduy/cloudflare-d1-database

Cloudflare D1 database driver for Laravel — full Eloquent &amp; Query Builder support.

267.8k](/packages/ntanduy-cloudflare-d1-database)[squareboat/sql-doctor

Quickly debugging the amount of database queries per request in Laravel.

571.4k](/packages/squareboat-sql-doctor)[ghostcompiler/laravel-querybuilder

Reusable query builder helpers for Eloquent APIs on Laravel 10 through 13.

172.3k](/packages/ghostcompiler-laravel-querybuilder)

PHPackages © 2026

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