purple/anbu 问题修复 & 功能扩展

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

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

purple/anbu

Composer 安装命令:

composer require purple/anbu

包简介

laravel-debug profiler

README 文档

README

Thanks daylerees

Anbu Profiler

Installation

执行以下命令进行安装

composer require purple/anbu

添加以下内容到文件 app/config/app.php:

Purple\Anbu\ProfilerServiceProvider::class,

执行以下命令将会自动复制资源文件到指定目录,中括号中的参数将会强制覆盖已经存在的文件

php artisan vendor:publish --provider="Purple\Anbu\ProfilerServiceProvider" [--force]

安装结束,尽情使用吧

Timers

如需使用此功能,需要启用Facades,添加以下内容到 app/config/app.php

'Anbu' => 'Purple\Anbu\Facades\Purple',

使用方法如下

Anbu::timers()->start('test');
sleep(30); // Do something interesting here.
Anbu::timers()->end('test', 'Completed doing something.');

Debug

如需使用此功能,使用 ad() 代替 dd()

ad('foo');

Problems?

如何清除数据,清除数据采用 truncate ,将会重置自增主键

php artisan purple:clear

Configuration

return [
    /**
     * 启用分析工具
     */
    'disable' => env('PURPLE_ENABLE', false),

    /**
     * 页面是否显示按钮
     */
    'display' => true,

    /**
     * 数据收集驱动类型
     */
    'repository' => 'Purple\Anbu\Repositories\DatabaseRepository',

    /**
     * 分析工具列表
     */
    'modules' => [
        'Purple\Anbu\Modules\Dashboard\Dashboard',
        'Purple\Anbu\Modules\RoutesBrowser\RoutesBrowser',
        'Purple\Anbu\Modules\Request\Request',
        'Purple\Anbu\Modules\QueryLogger\QueryLogger',
        'Purple\Anbu\Modules\Logger\Logger',
        'Purple\Anbu\Modules\Events\Events',
        'Purple\Anbu\Modules\Debug\Debug',
        'Purple\Anbu\Modules\Timers\Timers',
        'Purple\Anbu\Modules\Info\Info',
        'Purple\Anbu\Modules\History\History',
//        'Anbu\Modules\Container\Container',
    ],
    
];

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-05-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固