2017 © Pedro Peláez
 

library querydumper

Laravel package to dump all running queries on the page.

image

sarfraznawaz2005/querydumper

Laravel package to dump all running queries on the page.

  • Tuesday, November 7, 2017
  • by sarfraznawaz2005
  • Repository
  • 2 Watchers
  • 22 Stars
  • 27 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Abandoned:, (*1)

Use this package instead, (*2)


Laravel QueryDumper

laravel 5.1 laravel 5.2 laravel 5.3 downloads, (*3)

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., (*4)

Screenshot

Main Window, (*5)

Requirements

  • PHP >= 5.6
  • Laravel 5 (tested on Laravel 5.1, 5.2, 5.3 and 5.4)

Installation

Install via composer, (*6)

composer require sarfraznawaz2005/querydumper

Add Service Provider to config/app.php in providers section, (*7)

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., (*8)

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.

QueryLine, (*9)

License

This code is published under the MIT License. This means you can do almost anything with it, as long as the copyright notice and the accompanying license file is left intact., (*10)

The Versions

07/11 2017

dev-master

9999999-dev

Laravel package to dump all running queries on the page.

  Sources   Download

MIT

The Requires

 

laravel sql log query

24/09 2017

1.0.0

1.0.0.0

Laravel package to dump all running queries on the page.

  Sources   Download

MIT

The Requires

 

laravel sql log query