spatie/wordpress-ray
Send debug output from WordPress to Ray, Spatie’s desktop debugging app. Use a consistent debugging API to inspect dumps, arrays, HTML, queries, and more, measure performance, and pause execution—all from your WordPress project.
Debugging & Developer Experience (DX) Enhancement:
Build vs. Buy:
Use Cases:
Roadmap Prioritization:
var_dump() with Ray).Adopt if:
var_dump(), error_log(), or Xdebug, and you want a modern, interactive alternative.Look elsewhere if:
"This package lets us unify WordPress and Laravel debugging under Ray, a tool already used by our PHP team. By adopting
spatie/wordpress-ray, we can:
- Cut debugging time by 30%+ with Ray’s interactive inspection (no more digging through
var_dump()logs).- Reduce tool fragmentation: Replace ad-hoc debugging methods with a single, cross-language solution for WordPress + Laravel.
- Accelerate hybrid projects: Teams building headless WordPress or custom plugins will ship faster with real-time debugging.
- Cost: Low (~$10/month per developer for advanced features); free tier covers early adoption. Ask: Approve a 2-week pilot with the dev team to validate productivity gains."*
"
spatie/wordpress-raybridges WordPress debugging into Ray, giving us:
- Laravel-like debugging for WordPress: Send queries, arrays, or HTML to Ray’s UI with
Ray::dump().- Performance insights: Time WordPress plugin execution alongside Laravel services.
- AI/ML debugging: Visualize MCP server interactions (e.g., AI-generated content) in Ray.
- Zero setup: Drop the package into any WordPress project; works with existing Ray accounts. Trade-offs: Requires Ray installation (free tier has limits); not a replacement for Xdebug but complements it. Proposal: Test in our [Plugin X] project where debugging REST API responses is painful. If it saves 2+ hours/week, scale to the team."*
"Tired of
var_dump()hell in WordPress? Ray for WordPress lets you:
- Inspect anything: Dump WordPress queries,
$_POSTdata, or even Markdown-formatted notes—all in Ray’s clean UI.- Pause execution: Step through WordPress hooks/filters like you would in Laravel.
- Collaborate: Share debug sessions with designers/QA via Ray’s session links. How it works:
// Replace this: var_dump(get_post_meta($post_id)); // With this: Ray::dump(get_post_meta($post_id)); // Opens in Ray’s inspectorTry it in [Project Y]—if you save 10 minutes/day, we’ll roll it out."
How can I help you explore Laravel packages today?