PHPackages                             elysiumrealms/sql-interceptor - 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. elysiumrealms/sql-interceptor

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

elysiumrealms/sql-interceptor
=============================

SQL Interceptor for Laravel

v1.0.4(1y ago)014MITPHPPHP ^7.3|^8.0

Since Mar 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/elysiumrealms/sql-interceptor)[ Packagist](https://packagist.org/packages/elysiumrealms/sql-interceptor)[ RSS](/packages/elysiumrealms-sql-interceptor/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

SQLInterceptor
==============

[](#sqlinterceptor)

Description
-----------

[](#description)

SQLInterceptor is a tool for intercepting SQL queries. It can be used to perform a dry-run and capture SQL queries being executed within a closure.

Features
--------

[](#features)

- Intercept SQL queries

    ```
    use Elysiumrealms\SQLInterceptor\SQLInterceptor;

    class TaskExcelExporter extends AbstractExporter
    {
        public function export()
        {
            $queries =  SQLInterceptor::intercept(function () {

                // Complex logic which fetch from database connection
                // and cannot be pass into Laravel Job

            })->queries();

            // Pass into Laravel Job execyte async
            dispatch(new AsyncQueryJob($queries));
        }
    }
    ```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Total

5

Last Release

697d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4023f1cff0b6485985efd20bb82d44644dbbe6e58729900611e941000e3eb0bd?d=identicon)[deflinhec](/maintainers/deflinhec)

---

Top Contributors

[![deflinhec](https://avatars.githubusercontent.com/u/1531222?v=4)](https://github.com/deflinhec "deflinhec (8 commits)")

---

Tags

sqlinterceptor

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/elysiumrealms-sql-interceptor/health.svg)

```
[![Health](https://phpackages.com/badges/elysiumrealms-sql-interceptor/health.svg)](https://phpackages.com/packages/elysiumrealms-sql-interceptor)
```

###  Alternatives

[doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.

9.7k578.4M5.6k](/packages/doctrine-dbal)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[doctrine/sql-formatter

a PHP SQL highlighting library

1.9k166.0M85](/packages/doctrine-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[phpmyadmin/sql-parser

A validating SQL lexer and parser with a focus on MySQL dialect.

47750.4M55](/packages/phpmyadmin-sql-parser)[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)

PHPackages © 2026

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