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)1422MITPHPPHP &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 today

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

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity78

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

911d 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

[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8793.2M25](/packages/yajra-laravel-oci8)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k5.1M32](/packages/tucker-eric-eloquentfilter)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.5M2](/packages/glushkovds-phpclickhouse-laravel)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.3M17](/packages/reedware-laravel-relation-joins)[mpyw/laravel-local-class-scope

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

24112.8k](/packages/mpyw-laravel-local-class-scope)[mpyw/laravel-database-advisory-lock

Advisory Locking Features of Postgres/MySQL/MariaDB on Laravel

2862.3k](/packages/mpyw-laravel-database-advisory-lock)

PHPackages © 2026

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