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.
error_log(), WP_DEBUG) but extends functionality to Ray, a modern, cross-language debugging tool. This aligns well with Laravel-centric teams already using Ray for PHP/Laravel debugging, reducing context-switching.shutdown hook to capture output, ensuring compatibility with plugins/themes.WP_DEBUG or custom flags).ob_start() is not heavily customized. Test with WP_DEBUG_DISPLAY and WP_DEBUG_LOG to ensure output isn’t duplicated or lost.ob_start() may interfere with Ray’s output capture. Test with plugins like WP Super Cache or Object Cache.ray() helper, custom admin UI, or CLI)?WP_DEBUG_LOG, Xdebug) or run parallel?WP_DEBUG_LOG?)ray()) reduces cognitive load.WP_DEBUG enabled.var_dump()/error_log() with ray() in critical paths (e.g., custom REST APIs, cron jobs).wp_loaded, save_post) for targeted debugging.WP_ENV=local).ray()->pause(), performance tabs).fileinfo and curl (for Ray’s HTTP API). Verify your server meets Ray’s PHP requirements.shutdown to capture output, but may miss:
register_shutdown_function (race conditions).WP_CLI commands (test separately).WP_CACHE doesn’t interfere with output buffers.spatie/wordpress-ray in local WordPress environments.error_log() with ray() for critical paths._wpnonce, passwords).spatie/wordpress-ray for WordPress/Ray compatibility changes. Use Composer’s update command cautiously (test in staging first).shutdown hook conflicts with ob_start().ray() calls in slow endpoints.WP_Query).if (WP_DEBUG && !is_production()) ray($data)).ray.dev.example.com, ray.staging.example.com).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Ray server downtime | Lost debug visibility | Fallback to WP_DEBUG_LOG + email alerts. |
| Network latency between WP and Ray |
How can I help you explore Laravel packages today?