承接 sakiot/laravel-sql-spy 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

sakiot/laravel-sql-spy

最新稳定版本:v0.0.1-alpha.3

Composer 安装命令:

composer require sakiot/laravel-sql-spy

包简介

README 文档

README

StyleCI

SQL query aggregation tool for refactoring

(!)This library is under development.

Laravel Sql Spy is a tool for inspecting the SQL queries issued by your application built with Laravel. To find duplicate and redundant queries that are the main source of load, it's not enough to just get a list of query submission logs.

Laravel Sql Spy groups issued queries and supports refactoring efficiently.

Requirements

  • PHP >= 8.x
  • Laravel >= 8.x

Installation

Step 1: Install package

Use Composer command to add the package.

composer require sakiot/laravel-sql-spy

Step 2: Register Service Provider

Register the Service Provider in your config file.

// config/app.php

'providers' => [
    // Application Service Providers...
    // ...

    // Other Service Providers...
    LaravelSqlSpy\LaravelSqlSpyServiceProvider::class, // add
],

Usage

Turn on debug mode in your environment file.

// .env

APP_DEBUG=true

Then you will see the Sql Spy button on the top right of the page. By clicking this button, you can download the csv file.

Currently, I'm using sessions to hold data. So if you open multiple tabs in your browser, the data of the last opened page will be retrieved. The "page where the button was clicked" is irrelevant. You will always get the "last opened page" information!

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-08-03