Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Backtrace Laravel Package

spatie/backtrace

Spatie Backtrace makes PHP backtraces easier than debug_backtrace(): frames are aligned correctly and exposed as Frame objects with file, line, class, method, and optional arguments. Simple API to capture, inspect, and work with stack traces.

View on GitHub
Deep Wiki
Context7

spatie/backtrace provides a cleaner, more reliable alternative to PHP’s debug_backtrace(). It fixes confusing frame naming, avoids bitmask options, and returns an easy-to-use collection of Frame objects for inspecting call stacks.

Use Backtrace::create()->frames() to access file, line, class/method, and (optionally) arguments—ideal for debugging, logging, and error reporting.

  • Returns an array of typed Spatie\Backtrace\Frame instances
  • Corrects skewed function/method names across frames
  • Optional inclusion of arguments for deeper inspection
  • Simple API (no bitmask flags)
  • Frame metadata: file, lineNumber, class, method, object
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport