spatie/ray
Send debug output from any PHP app to Ray, Spatie’s desktop debugging tool. Inspect arrays, HTML, queries, and more with a consistent API across Laravel/PHP/JS. Measure performance, pause execution, and keep fast, interactive feedback.
Debugging & Developer Experience (DX) Enhancement:
dd(), Log::debug(), or third-party IDE debuggers) for faster, richer debugging in Laravel/PHP applications.Roadmap: Observability & Performance:
Build vs. Buy:
afterSendCallbacks) to integrate with internal monitoring tools (e.g., Datadog, Sentry) or add custom metadata.Use Cases:
Cart with 50+ items).dd(), Log::debug()) are cluttering logs or lack interactive features (e.g., copying data, expanding objects).dd() suffices.myray.app)."Ray transforms how our engineers debug Laravel applications—replacing slow, fragmented tools with a single pane of glass for real-time debugging. Here’s why it’s a no-brainer:
Investment: ~$100/year for a team license (vs. lost dev hours from current tools). ROI: Faster releases, fewer bugs, happier engineers."*
"Ray is the Swiss Army knife for Laravel debugging—here’s how it upgrades your workflow:
dd() and Log::debug(): Send anything to Ray (variables, queries, HTML, Markdown) with one line:
ray(new User)->with('orders')->with('profile');
ray()->trace() to log timed sections of code (e.g., payment processing):
ray()->trace('Payment Processing', fn() => $payment->charge());
Getting Started:
composer require spatie/ray.php artisan vendor:publish --provider="Spatie\Ray\RayServiceProvider".Pro Tip: Use ray()->ignore() to exclude sensitive data (e.g., passwords) from logs."*
How can I help you explore Laravel packages today?