PHPackages                             dbt/query-scope - 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. dbt/query-scope

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

dbt/query-scope
===============

Class-based scopes for Illuminate's query builder

4.0.0(2y ago)1377MITPHPPHP &gt;=8.1

Since Mar 4Pushed 2y ago1 watchersCompare

[ Source](https://github.com/DeBoerTool/query-scope)[ Packagist](https://packagist.org/packages/dbt/query-scope)[ Docs](https://github.com/dbt/query-scope)[ RSS](/packages/dbt-query-scope/feed)WikiDiscussions trunk Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (19)Used By (0)

Class-Based Query Scoper for Laravel's Query Builder
====================================================

[](#class-based-query-scoper-for-laravels-query-builder)

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

[](#installation)

You can install the package via composer:

```
composer require dbt/query-scope
```

Usage
-----

[](#usage)

### Testing

[](#testing)

```
composer test
```

### Static Analysis

[](#static-analysis)

```
composer stat
```

Etc.
----

[](#etc)

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

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity77

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

Recently: every ~385 days

Total

17

Last Release

865d ago

Major Versions

0.1.1 → 1.0.02019-03-05

1.1.0 → 2.0.02019-10-17

2.2.0 → 3.0.02020-10-07

3.0.0 → 4.0.02024-01-03

PHP version history (4 changes)0.1.0PHP ^7.1

1.0.2PHP 7.1.\*|7.2.\*|7.3.\*

3.0.0PHP &gt;=7.2.0

4.0.0PHP &gt;=8.1

### Community

Maintainers

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

---

Top Contributors

[![danielsdeboer](https://avatars.githubusercontent.com/u/13170241?v=4)](https://github.com/danielsdeboer "danielsdeboer (18 commits)")

---

Tags

laravelqueryilluminatescopedbt

###  Code Quality

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/dbt-query-scope/health.svg)

```
[![Health](https://phpackages.com/badges/dbt-query-scope/health.svg)](https://phpackages.com/packages/dbt-query-scope)
```

###  Alternatives

[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)[mehdi-fathi/eloquent-filter

Eloquent Filter adds custom filters automatically to your Eloquent Models in Laravel.It's easy to use and fully dynamic, just with sending the Query Strings to it.

450191.6k1](/packages/mehdi-fathi-eloquent-filter)[mpyw/laravel-local-class-scope

A tiny macro that reuse a global scope class as a local scope

24102.6k](/packages/mpyw-laravel-local-class-scope)[mpyw/laravel-mysql-system-variable-manager

A tiny extension of MySqlConnection that manages session system variables

115.8k](/packages/mpyw-laravel-mysql-system-variable-manager)

PHPackages © 2026

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