Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 15, 2024 via composer

spatie/backtrace 1.5.3

A better backtrace
Package summary
Share
0
issues
1
license
1
MIT
Package created
24 Nov 2020
Version published
28 Jun 2023
Maintainers
1
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
spatie/backtrace@1.5.3
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of spatie/backtrace 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does spatie/backtrace do?

Spatie/Backtrace is a comprehensive PHP package designed to enhance the functionality of the debug_backtrace function. The debug_backtrace function, by default, can be challenging to work with due to its complex structure. Spatie/Backtrace addresses these challenges, providing users with a more streamlined way of working with a back trace. Using this package ensures that the reported function name for each data frame aligns correctly to the appropriate frame instead of the previous one. Moreover, the need for bitmask in passing options is eliminated.

How do you use spatie/backtrace?

To implement Spatie/Backtrace, start by installing the package via composer using the command composer require spatie/backtrace. Once installed, you can create a backtrace instance by calling Spatie\Backtrace\Backtrace::create(). Collect all frames using the frames method: $frames = $backtrace->frames();. Each Spatie\Backtrace\Frame includes properties such as file for the file name, lineNumber for the line number, class for class name, and others. By using these features, users gain comprehensive data for each specific frame. Additional features allow for collecting arguments, reducing arguments for viewing purposes, settling the application path, getting a certain part of a trace, and limiting frames' number.

$backtrace = Spatie\Backtrace\Backtrace::create();
$frames = $backtrace->frames();

Where are the spatie/backtrace docs?

The Spatie/Backtrace package documentation can be found on the GitHub repository page at GitHub - Spatie/Backtrace. The repository contains all the necessary information about the package, including installation instructions, usage examples, and helpful resources for troubleshooting or extending the package's functionality. Contributions are welcomed by the Spatie community and detailed information on contributing is also found on this page. Please note that terms of use of Spatie/Backtrace are governed by the MIT License.