2017 © Pedro Peláez
 

library php-backtrace

Nice debug_backtrace() dump, with call and code preview

image

steevanb/php-backtrace

Nice debug_backtrace() dump, with call and code preview

  • Thursday, March 30, 2017
  • by kujaff
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4,211 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 13 % Grown

The README.md

version php Lines Total Downloads Scrutinizer, (*1)

php-backtrace

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

Can be used in HTML, or with symfony/console., (*3)

Changelog, (*4)

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, (*5)

Dump in symfony/console application

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

Console backtrace, (*6)

The Versions

30/03 2017

dev-master

9999999-dev

Nice debug_backtrace() dump, with call and code preview

  Sources   Download

MIT

The Requires

  • php ^5.4|^7.0

 

30/03 2017

2.0.1

2.0.1.0

Nice debug_backtrace() dump, with call and code preview

  Sources   Download

MIT

The Requires

  • php ^5.4|^7.0

 

31/01 2017

2.0.0

2.0.0.0

Nice debug_backtrace() dump, with call and code preview

  Sources   Download

MIT

The Requires

  • php ^5.4|^7.0

 

12/10 2016

1.1.1

1.1.1.0

Nice debug_backtrace() dump, with call and code preview

  Sources   Download

MIT

The Requires

  • php ^5.4|^7.0

 

10/10 2016

1.1.0

1.1.0.0

Nice debug_backtrace() dump, with call and code preview

  Sources   Download

MIT

The Requires

  • php ^5.4|^7.0

 

16/08 2016

1.0.1

1.0.1.0

Nice debug_backtrace() dump, with call and code preview

  Sources   Download

MIT

The Requires

  • php ^5.4|^7.0

 

02/08 2016

1.0.0

1.0.0.0

Nice debug_backtrace() dump, with call and code preview

  Sources   Download

MIT

The Requires

  • php ^5.4|^7.0