PHPackages                             xepozz/stacktrace-parser - 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. xepozz/stacktrace-parser

ActiveLibrary

xepozz/stacktrace-parser
========================

1.0(4y ago)05PHP

Since Jul 5Pushed 4y ago1 watchersCompare

[ Source](https://github.com/xepozz/stacktrace-parser)[ Packagist](https://packagist.org/packages/xepozz/stacktrace-parser)[ RSS](/packages/xepozz-stacktrace-parser/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/6062c65996fe5515ea79bd4dd1f058357bda580b91a9efddfc97f81a8fa8bc0d/68747470733a2f2f706f7365722e707567782e6f72672f7865706f7a7a2f737461636b74726163652d7061727365722f762f737461626c652e706e67)](https://packagist.org/packages/xepozz/stacktrace-parser)[![Total Downloads](https://camo.githubusercontent.com/084e25df18f05411213733352a8112e33cd322314f70b059fbffd82d8e724f49/68747470733a2f2f706f7365722e707567782e6f72672f7865706f7a7a2f737461636b74726163652d7061727365722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/xepozz/stacktrace-parser)[![Build status](https://github.com/xepozz/stacktrace-parser/workflows/build/badge.svg)](https://github.com/xepozz/stacktrace-parser/actions?query=workflow%3Abuild)[![Code Coverage](https://camo.githubusercontent.com/c685a47e588a21001affe6ebdcb9d5aeffd16aadf94c420a11da34007b105885/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7865706f7a7a2f737461636b74726163652d7061727365722f6261646765732f636f7665726167652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/xepozz/stacktrace-parser/?branch=main)

Introduction
============

[](#introduction)

The `stacktrace-parser` is a tool to parse string stacktrace to array like you call [getTrace()](https://www.php.net/manual/ru/exception.gettrace.php) on a real exception object.

Installation
------------

[](#installation)

Just run in console:

```
composer req xepozz/stacktrace-parser --prefer-dist
```

Usage
-----

[](#usage)

```
use Xepozz\StacktraceParser\StacktraceParser;

$parser = new StacktraceParser();

$stacktrace = $parser->parse( /in/hVvRE
            [line] => 11
            [class] => A
            [type] => ->
            [function] => __g
        )

)

```

If you want to see more examples look into [`tests`](tests/) folder

Restriction
-----------

[](#restriction)

As a lot of custom tools this tool has one restriction. It's absent `args` property in trace item.

It's absent, because there is no way how to reproduce reduced value back to PHP-like value.

So parser even doesn't try to restore these values.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1778d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6815714?v=4)[Dmitrii Derepko](/maintainers/xepozz)[@xepozz](https://github.com/xepozz)

---

Top Contributors

[![xepozz](https://avatars.githubusercontent.com/u/6815714?v=4)](https://github.com/xepozz "xepozz (20 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/xepozz-stacktrace-parser/health.svg)

```
[![Health](https://phpackages.com/badges/xepozz-stacktrace-parser/health.svg)](https://phpackages.com/packages/xepozz-stacktrace-parser)
```

PHPackages © 2026

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