bdk/backtrace

Backtrace utils

Maintainers

👁 brad.kent

Package info

github.com/bkdotcom/Backtrace

Homepage

pkg:composer/bdk/backtrace

Statistics

Installs: 401

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

v2.2.4 2025-11-11 17:24 UTC

Requires

  • php: >=5.4.0

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT b0e78352e18024fd75a4c605ebef4b54889d6562

traceBacktrace

This package is auto-updated.

Last update: 2026-06-11 19:10:32 UTC


README

PHP Backtrace utils

is this really necessary?

  • There are two functions to get a backtrace in PHP. debug_backtrace and xdebug_get_function_stack... To get the trace for a fatal error. xdebug_get_function_stack must be used. This utility uses xdebug when necessary and normalizes the results.
  • Ability to define classes/namespaces to skip over... Useful for when your framework wants to display a trace to the user... without all the internals that got to the point of generating the trace
  • Utility for getting the surrounding file lines for each frame.
  • getCallerInfo() utility method to get the calling file/line/function

Tests / Quality

👁 No Dependencies
👁 Supported PHP versions
👁 Build Status
👁 Maintainability
👁 Coverage