PHPackages                             kba-team/php-backtrace - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. kba-team/php-backtrace

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

kba-team/php-backtrace
======================

Extendable class holding the PHP backtrace minus the last n steps to avoid showing the traces of logging.

v1.0.2(2y ago)126.0k↓43.2%11MITPHPPHP ^7.4|^8.0

Since Jun 8Pushed 2y ago2 watchersCompare

[ Source](https://github.com/the-kbA-team/php_backtrace)[ Packagist](https://packagist.org/packages/kba-team/php-backtrace)[ RSS](/packages/kba-team-php-backtrace/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (1)

PHP Backtrace
=============

[](#php-backtrace)

[![License: MIT](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)[![Packagist Version](https://camo.githubusercontent.com/aa8d297592f6dc350273c7f7170cfde33f43150fe5878146269a9f7e0444ff16/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b62612d7465616d2f7068702d6261636b7472616365)](https://packagist.org/packages/kba-team/php-backtrace)[![Build Status](https://camo.githubusercontent.com/3db20cf6ed3c58762d35eb66403e09cc0e8ef9b873135c353f7ff14d66f85da3/68747470733a2f2f6170692e7472617669732d63692e6f72672f7468652d6b62412d7465616d2f7068705f6261636b74726163652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/the-kbA-team/php_backtrace)[![Maintainability](https://camo.githubusercontent.com/2e78aa1dc12ced718c691349e32222fb41f1cafa85b9cf95366bd042f28a6a54/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f31303566333033396664666530393461306366662f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/the-kbA-team/php_backtrace/maintainability)[![Test Coverage](https://camo.githubusercontent.com/94618aaa68d64925898d5e3759d127dea94211db62071f3e4f20d767d78ab2f9/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f31303566333033396664666530393461306366662f746573745f636f766572616765)](https://codeclimate.com/github/the-kbA-team/php_backtrace/test_coverage)

Extendable class holding the PHP backtrace minus the last n steps to avoid showing the traces of logging.

Usage
-----

[](#usage)

`composer require kba-team/php-backtrace`

### Example 1

[](#example-1)

Using the static function `classicString()` to echo the classic style output of the backtrace, while removing the current directory from the file paths.

```
