PHPackages                             loburets/laravel-query-printer - 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. loburets/laravel-query-printer

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

loburets/laravel-query-printer
==============================

An easy way to print queries and query logs in Laravel

v0.1.2(4y ago)05MITPHP

Since Aug 24Pushed 1y ago1 watchersCompare

[ Source](https://github.com/loburets/laravel-query-printer)[ Packagist](https://packagist.org/packages/loburets/laravel-query-printer)[ RSS](/packages/loburets-laravel-query-printer/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

🖨️ Laravel Query Printer
========================

[](#️-laravel-query-printer)

An easy way to print Laravel queries

📌 Example
---------

[](#-example)

```
// Enable query log
\DB::enableQueryLog();

// Use whatever queries you want to debug:
User::where('email', 'test@test.com')->where('verified', true)->first();
User::where('id', 'first(), ->get() etc. So it is an instance of the Query Builder here:
    $query = \Model::where()->join()->etc();

    // Print the generated SQL
    \QueryPrinter::print($query);
```

### ✅ Printing executed queries from query logs

[](#-printing-executed-queries-from-query-logs)

You can also print queries after they have been executed:

```
    // Enable the Query log:
    \DB::enableQueryLog();

    // Do any actions which you want to be logged:
    $results = \Model::where()->join()->etc()->get();

    // Print all the executed queries
    \QueryPrinter::printQueryLog();
```

---

Now debugging Laravel queries is easier than ever! 🎯

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Total

3

Last Release

1721d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5417461?v=4)[Dmitriy Loburets](/maintainers/loburets)[@loburets](https://github.com/loburets)

---

Top Contributors

[![loburets](https://avatars.githubusercontent.com/u/5417461?v=4)](https://github.com/loburets "loburets (11 commits)")

---

Tags

debugdebugginglaravelphpsql

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/loburets-laravel-query-printer/health.svg)

```
[![Health](https://phpackages.com/badges/loburets-laravel-query-printer/health.svg)](https://phpackages.com/packages/loburets-laravel-query-printer)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

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

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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