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)1434MITPHPPHP &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 1w 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

34

—

LowBetter than 74% 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

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

[spatie/laravel-medialibrary

Associate files with Eloquent models

6.2k45.4M704](/packages/spatie-laravel-medialibrary)[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.9M110](/packages/mongodb-laravel-mongodb)[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k35.7M52](/packages/kirschbaum-development-eloquent-power-joins)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8723.3M27](/packages/yajra-laravel-oci8)[glushkovds/phpclickhouse-laravel

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

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

Adds the ability to join on a relationship by name.

2111.3M19](/packages/reedware-laravel-relation-joins)

PHPackages © 2026

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