sarfraznawaz2005/querydumper 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sarfraznawaz2005/querydumper

Composer 安装命令:

composer require sarfraznawaz2005/querydumper

包简介

Laravel package to dump all running queries on the page.

README 文档

README

Abandoned:

Use this package instead

Laravel QueryDumper

laravel 5.1 laravel 5.2 laravel 5.3 downloads

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

Main Window

Requirements

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

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

  • 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

QueryLine

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.

统计信息

  • 总下载量: 75
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 24
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 24
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-09-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固