承接 phalcon-tools/debugger 相关项目开发

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

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

phalcon-tools/debugger

最新稳定版本:1.0.3

Composer 安装命令:

composer require phalcon-tools/debugger

包简介

Phalcon Debug toolbar

README 文档

README

Requirements

  • PHP: v5.5.0+
  • Phalcon: v2.0+

Installation

Include it in your composer.json file

{
	"require-dev": {
    	"phalcon-tools/debugger": "dev-master"
	}
}

Usage and Configuration

Define a debug or environment flag in your application bootstrap file so you can easily disable the Phalcon Debug Widget on production environments. e.g.

define('PHALCON_DEBUG', true);

After you have setup your \Phalcon\Loader and \Phalcon\DI\FactoryDefault() create a new instance of the debug widget.

if (PHALCON_DEBUG == true) {
    $debugWidget = new \Phalcon\Debug\DebugWidget($di);
}

That's it! The Phalcon debug widget should appear along the bottom of your application!

How it works

The debug widget for now is very simplistic, however can be useful. It expects you have three services in your dependency injector named:

  • db
  • dispatcher
  • view

It expects these services to match the Phalcon services of the same name.

When you pass the DI to Phalcon Debug Widget It looks for those specific services and does the following:

  • Sets them as shared services
  • Sets the eventManager for them
  • Attaches itself to those events

This means passing the DI to the debug widget will alter those services. Generally speaking, a shared db, dispatcher, and view is fine. If you have ideas for other ways to hook in, please open an issue for discussion.

The Phalcon Debug Widget is designed to make development easier by displaying debugging information directly in your browser window. Currently it displays php globals such as $_SESSION as well as outputing resource usage and database queries and connection information.

Preview

Preview of the available debug panels

Server View

Views View

Database View

Request View

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 4
  • 开发语言: HTML

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-09-04