定制 daylerees/anbu 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

daylerees/anbu

Composer 安装命令:

composer require daylerees/anbu

包简介

The Anbu profiler for Laravel 4.

README 文档

README

Codeship Status for daylerees/anbu

Github Release Packagist License Packagist Downloads Github Issues Tips

Anbu Profiler for Laravel PHP

Anbu Profiler

Installation

You'll need to add the package to the require section of your Laravel app composer.json file:

"daylerees/anbu": "~1.0@alpha"

First ensure that you have a database, and that it is configured with Laravel.

Next add the following service provider to app/config/app.php:

'Anbu\ProfilerServiceProvider',

Next use the asset:publish command for Artisan to publish profiler asset files.

php artisan asset:publish

Finally, execute a page of your application and click on the Laravel icon in the lower left.

Timers

If you want to use Anbu timers, you'll need to include the Facade in the app/config/app.php file:

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

Now you can create timers like this:

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

Debug

When you use dd() you risk exposing information to the users of your application. Instead, use ad() to dump this data into the 'Debug' section of Anbu.

ad('foo');

Hide & Disable

First let me explain the two concepts.

To hide is to eliminate the Laravel icon button from requests, so that it won't interfere with certain content types.

To disable is to stop the profiler from storing the request, and displaying the button. Data for this request will be lost.

You can hide the profiler using:

Anbu::hide();

Or you can apply the anbu.hide filter as a before filter to any route or route group.

You can disable the profiler using:

Anbu::disable();

Or you can apply the anbu.disable filter as a before filter to any route or route group.

Problems?

If a new module is added, then you might get an error when rendering a previous request.

Here's some things you can try if you have any problems. First you can try updating Anbu with:

composer update

Secondly you can clear the previous requests with the following Artisan command.

php artisan anbu:clear

Let me know about other issues!

统计信息

  • 总下载量: 4.87k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 305
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 305
  • Watchers: 16
  • Forks: 24
  • 开发语言: CSS

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-09-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固