承接 steevanb/php-backtrace 相关项目开发

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

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

steevanb/php-backtrace

最新稳定版本:2.1.0

Composer 安装命令:

composer require steevanb/php-backtrace

包简介

Nice debug_backtrace() dump, with call and code preview

README 文档

README

version php Lines Total Downloads Scrutinizer

php-backtrace

Show nice equivalent to debug_backtrace(), with caller, code preview etc.

Can be used in HTML, or with symfony/console.

Changelog

Installation

composer require --dev steevanb/php-backtrace ^2.1

Configuration

// configure how file paths will be shown
// true : remove path prefix, based on DumpBacktrace.php path (assume it is in vendor/ dir)
// false : do not remove anything in file paths
// string : remove this prefix
\DumpBacktrace::setRemovePathPrefix($remove);

Dump as HTML

// get backtrace dump as array
\DebugBacktraceHtml::getBacktraces();
// get backtrace dump as HTML
\DebugBacktraceHtml::getDump();
// write getDump() HTML with echo
\DebugBacktraceHtml::dump();
// write getDump() HTML with echo, and exit
\DebugBacktraceHtml::eDump();

HTML backtrace

Dump in symfony/console application

// Write dump
\DebugBacktraceConsole::dump();
// Write dump and exit
\DebugBacktraceConsole::eDump();

Console backtrace

统计信息

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

GitHub 信息

  • Stars: 21
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-08-01