Effortlessly trace PHP errors in your applications with spatie/backtrace library providing detailed insights for debugging.
Current Version: 1.8.1
Last Updated: 2025-08-26
PHP Requirement: ^7.3 || ^8.0
Dependencies: None
Package Description
Discover the power of spatie/backtrace, a PHP library designed to facilitate error tracing in your projects. With detailed backtrace information, you can easily identify and resolve issues, leading to more robust and stable applications. Improve your debugging process with this comprehensive tool by spatie.
Make sure to include the correct namespace and class paths for proper usage.
<?php
// Example from PHPlibraries.com
require_once 'libs/spatie/backtrace/1.8.1/loader.php';
require_once 'libs/spatie/backtrace-vendor/dependency1/{lib_version}/loader.php';
require_once 'libs/spatie/backtrace-vendor/dependency2/{lib_version}/loader.php';
use Spatie\Backtrace\ClassName1;
use Spatie\Backtrace\VendorDependency\ClassName4;
$obj = new ClassName1();
echo '✅ Test OK: ' . get_class($obj);
?>
We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.
Community Discussion
Ask questions, share tips, or report issues below.