PHPackages                             chevere/trace - 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. chevere/trace

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

chevere/trace
=============

Tooling for handling debug\_backtrace items

2.0.2(8mo ago)132.3k—0%1[1 issues](https://github.com/chevere/trace/issues)7Apache-2.0PHPPHP ^8.1CI passing

Since Feb 8Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/chevere/trace)[ Packagist](https://packagist.org/packages/chevere/trace)[ Docs](https://chevere.org)[ RSS](/packages/chevere-trace/feed)WikiDiscussions 2.0 Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (28)Used By (7)

Trace
=====

[](#trace)

[![Chevere](chevere.svg)](chevere.svg)

[![Code size](https://camo.githubusercontent.com/491ab79763c374b3bcfab02d32f189cdd3150e53e7828074470cbdb7010a50d6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f636865766572652f74726163653f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/491ab79763c374b3bcfab02d32f189cdd3150e53e7828074470cbdb7010a50d6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f636865766572652f74726163653f7374796c653d666c61742d737175617265)[![Apache-2.0](https://camo.githubusercontent.com/976a75b808955534b8ff374adb2346ac6cd1376e616a24d69861532327f0932f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f636865766572652f74726163653f7374796c653d666c61742d737175617265)](LICENSE)[![PHPStan](https://camo.githubusercontent.com/6016298b28550819030c76e9327f62501596a31fd76406695bae2f3d2a1f26a4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c253230392d626c756576696f6c65743f7374796c653d666c61742d737175617265)](https://phpstan.org/)[![Mutation testing badge](https://camo.githubusercontent.com/3f6c23224cd754190f916ea8c7babbcf86da53a94e0ea493037aa85be0355148/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742d7371756172652675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d253246636865766572652532467472616365253246322e30)](https://dashboard.stryker-mutator.io/reports/github.com/chevere/trace/2.0)

[![Quality Gate Status](https://camo.githubusercontent.com/b1cf2b16cbd83a60fed29ef9aa2a8783f37baa0b5c0d5fa6557ce669b3a667a8/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d636865766572655f7472616365266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/dashboard?id=chevere_trace)[![Maintainability Rating](https://camo.githubusercontent.com/2754530c6d35fe6ce7705752f162d6f22ad1b04acdb05798e131c66c63dac162/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d636865766572655f7472616365266d65747269633d7371616c655f726174696e67)](https://sonarcloud.io/dashboard?id=chevere_trace)[![Reliability Rating](https://camo.githubusercontent.com/4e813290701d8f9a1be50f5153e1ca8b9a5125da857fb5b8cedf75965324e373/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d636865766572655f7472616365266d65747269633d72656c696162696c6974795f726174696e67)](https://sonarcloud.io/dashboard?id=chevere_trace)[![Security Rating](https://camo.githubusercontent.com/90c67d069579ff940f8c2396e679600ffb943addee58747a0ce4cb72647ca3bd/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d636865766572655f7472616365266d65747269633d73656375726974795f726174696e67)](https://sonarcloud.io/dashboard?id=chevere_trace)[![Coverage](https://camo.githubusercontent.com/b3647cc0e9e063e7a8fd9922a9fdbe2be9cb17a96041c1e5157687b2426dc33a/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d636865766572655f7472616365266d65747269633d636f766572616765)](https://sonarcloud.io/dashboard?id=chevere_trace)[![Technical Debt](https://camo.githubusercontent.com/d573edd33a2e618523e63649f124035da3eb1890fc5e4d35b06f8d6590abe08d/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d636865766572655f7472616365266d65747269633d7371616c655f696e646578)](https://sonarcloud.io/dashboard?id=chevere_trace)[![CodeFactor](https://camo.githubusercontent.com/187428aa535aa98472259692a458c297751beb51237cb1e4f8ec07f99869cb10/68747470733a2f2f7777772e636f6465666163746f722e696f2f7265706f7369746f72792f6769746875622f636865766572652f74726163652f6261646765)](https://www.codefactor.io/repository/github/chevere/trace)

Summary
-------

[](#summary)

Tooling for handling [debug\_backtrace](https://www.php.net/manual/en/function.debug-backtrace.php) items.

Installing
----------

[](#installing)

Trace is available through [Packagist](https://packagist.org/packages/chevere/trace) and the repository source is at [chevere/trace](https://github.com/chevere/trace).

```
composer require chevere/trace
```

Creating a Trace
----------------

[](#creating-a-trace)

Create a Trace by passing a PHP `debug_backtrace` array and a format object.

```
use Chevere\Trace\Formats\PlainFormat;
use Chevere\Trace\Trace;

$debugBacktrace = debug_backtrace();
$format = new PlainFormat();
$trace = new Trace($debugBacktrace, $format);
```

To Array
--------

[](#to-array)

Use method `toArray` to get an array representation of the formatted trace.

```
$array = $trace->toArray();
```

To String
---------

[](#to-string)

Use method `__toString` to get a string representation of the formatted trace.

```
$string = $trace->__toString();
```

Table
-----

[](#table)

Use method `table` to get the array used to translate template keys to values.

```
$table = $trace->table();
```

Documentation
-------------

[](#documentation)

Documentation is available at [chevere.org](https://chevere.org/packages/trace).

License
-------

[](#license)

Copyright [Rodolfo Berrios A.](https://rodolfoberrios.com/)

Chevere is licensed under the Apache License, Version 2.0. See [LICENSE](LICENSE) for the full license text.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance41

Moderate activity, may be stable

Popularity31

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~48 days

Recently: every ~135 days

Total

28

Last Release

248d ago

Major Versions

0.9.x-dev → 1.0.02024-01-09

1.0.x-dev → 2.0.02024-06-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/a87fbbcb1518fe64878bc53dedd9f61b81243cbb21b73c26f5e299d501375984?d=identicon)[rodolfo](/maintainers/rodolfo)

---

Top Contributors

[![rodber](https://avatars.githubusercontent.com/u/20590102?v=4)](https://github.com/rodber "rodber (69 commits)")

---

Tags

cheverephpphp-library

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/chevere-trace/health.svg)

```
[![Health](https://phpackages.com/badges/chevere-trace/health.svg)](https://phpackages.com/packages/chevere-trace)
```

###  Alternatives

[symfony/stopwatch

Provides a way to profile code

2.8k387.2M918](/packages/symfony-stopwatch)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k662.9k29](/packages/fruitcake-laravel-debugbar)[xrdebug/php

PHP client library for xrDebug

23920.3k2](/packages/xrdebug-php)[koriym/printo

An object graph visualizer.

1421.8M2](/packages/koriym-printo)[soloterm/dumps

A Laravel command to intercept dumps from your Laravel application.

125285.7k3](/packages/soloterm-dumps)[beyondcode/helo-laravel

HELO Laravel debug helper

90360.1k](/packages/beyondcode-helo-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
