PHPackages                             sarfraznawaz2005/querydumper - 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. sarfraznawaz2005/querydumper

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

sarfraznawaz2005/querydumper
============================

Laravel package to dump all running queries on the page.

1.0.0(8y ago)2475MITPHPPHP &gt;=5.6

Since Sep 24Pushed 6y ago2 watchersCompare

[ Source](https://github.com/sarfraznawaz2005/querydumper)[ Packagist](https://packagist.org/packages/sarfraznawaz2005/querydumper)[ RSS](/packages/sarfraznawaz2005-querydumper/feed)WikiDiscussions master Synced 2d ago

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

**Abandoned:**

[Use this package instead](https://github.com/sarfraznawaz2005/indexer)

---

Laravel QueryDumper
===================

[](#laravel-querydumper)

[![laravel 5.1](https://camo.githubusercontent.com/1f4d2790f2add6b3b71ce100b93c35955f0993e151c9cf79685b3dd28b50e97c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d352e312d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](http://laravel.com)[![laravel 5.2](https://camo.githubusercontent.com/33b59be6568a8c230ecc95a46aab2ba7752868f398a34b64c99bfbd8f2790a58/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d352e322d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](http://laravel.com)[![laravel 5.3](https://camo.githubusercontent.com/a7e1cdf9092e9addc80026f4f37eb963e539defda9a1f3276d088424c84e0a4b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d352e332d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](http://laravel.com)[![downloads](https://camo.githubusercontent.com/a8f5060f5d43a3c7867e9e60485ec3676452bc9d6f88be69426b00983fc43cbc/68747470733a2f2f706f7365722e707567782e6f72672f7361726672617a6e6177617a323030352f717565727964756d7065722f646f776e6c6f616473)](https://packagist.org/packages/sarfraznawaz2005/querydumper)

Introduction
------------

[](#introduction)

Simple Laravel 5 package to dump all running queries on the page. If it's `SELECT` query, it will also show `EXPLAIN` information against it.

Screenshot
----------

[](#screenshot)

[![Main Window](https://camo.githubusercontent.com/b164271f325d5d29167f0f15f8477c28eea66ca3fa9fe2f4e2b39c17addae3ec/68747470733a2f2f7261772e6769746875622e636f6d2f7361726672617a6e6177617a323030352f717565727964756d7065722f6d61737465722f73637265656e2e706e67)](https://camo.githubusercontent.com/b164271f325d5d29167f0f15f8477c28eea66ca3fa9fe2f4e2b39c17addae3ec/68747470733a2f2f7261772e6769746875622e636f6d2f7361726672617a6e6177617a323030352f717565727964756d7065722f6d61737465722f73637265656e2e706e67)

Requirements
------------

[](#requirements)

- PHP &gt;= 5.6
- Laravel 5 (tested on Laravel 5.1, 5.2, 5.3 and 5.4)

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

[](#installation)

Install via composer

```
composer require sarfraznawaz2005/querydumper

```

Add Service Provider to `config/app.php` in `providers` section

```
Sarfraznawaz2005\QueryDumper\QueryDumperServiceProvider::class,
```

Run `php artisan vendor:publish` to publish package's config file. You should now have `querydumper.php` file published in `app/config` folder.

Config Options
--------------

[](#config-options)

- `enabled` : Enable or disable QueryDumper. By default it is disabled. If you are on local environment, you can also just add `QUERYDUMPER=true` to env file to enable it.
- `querystring_name` : Whatever value for this config is set, you will be able to see all running quries by appending this value in your url as query string. Example: `http://www.yourapp.com/someurl?qqq`. Default value is `qqq`.
- `format_sql` : If true, it will also format shown SQL queries. Default `false`.
- `same_page` : If true, it will dump queries on current page you are on. If it affects your layout, you can set this to `false` and be able to view dumped queries on a page available at url `http://yoursite.com/querydumper/dump`. In this case, first visit the page you want to see queries of by appending `?querystring_name` value there and then visit `querydumper/dump` route to see quries for your last visited page. Default `true`.

Related Package
---------------

[](#related-package)

[QueryLine](https://github.com/sarfraznawaz2005/queryline)

License
-------

[](#license)

This code is published under the [MIT License](http://opensource.org/licenses/MIT). This means you can do almost anything with it, as long as the copyright notice and the accompanying license file is left intact.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3154d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f9bbcf3a6cda5f8bdf9afe10c20f5c6f563fc1a4d628a9af25c5fdec3f9c216?d=identicon)[sarfraznawaz2005](/maintainers/sarfraznawaz2005)

---

Top Contributors

[![sarfraznawaz2005](https://avatars.githubusercontent.com/u/201788?v=4)](https://github.com/sarfraznawaz2005 "sarfraznawaz2005 (35 commits)")

---

Tags

composerlaravellaravel-5-packageloggingphpquerysqlloglaravelsqlquery

### Embed Badge

![Health badge](/badges/sarfraznawaz2005-querydumper/health.svg)

```
[![Health](https://phpackages.com/badges/sarfraznawaz2005-querydumper/health.svg)](https://phpackages.com/packages/sarfraznawaz2005-querydumper)
```

###  Alternatives

[rennokki/laravel-eloquent-query-cache

Adding cache on your Laravel Eloquent queries' results is now a breeze.

1.1k4.0M14](/packages/rennokki-laravel-eloquent-query-cache)[mnabialek/laravel-sql-logger

Log SQL queries in Laravel/Lumen framework

158796.3k2](/packages/mnabialek-laravel-sql-logger)[sarfraznawaz2005/indexer

Laravel package to monitor SELECT queries and offer best possible INDEX fields.

562.7k](/packages/sarfraznawaz2005-indexer)[cerbero/sql-dumper

Laravel package to dump SQL queries.

247.6k](/packages/cerbero-sql-dumper)

PHPackages © 2026

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