spatie/ray

Debug with Ray to fix problems faster
46,495,909 624
Install
composer require spatie/ray
Latest Version:1.48.0
PHP:^7.4|^8.0
License:MIT
Last Updated:Jun 29, 2026
Links: GitHub  ·  Packagist
Maintainer: spatie

spatie/ray - Send debug output from PHP to Ray

Latest Version on Packagist Tests Total Downloads

This package can be installed in any PHP application to send debug output to Ray, the desktop debugging app from Spatie.

Ray is a desktop debugging app that keeps the instant feedback you get from console.log() and dump() but lets you use the same debugging syntax across Laravel, PHP, JavaScript and more frameworks and languages.

  • Send anything you want to Ray, including HTML, arrays, queries, and Markdown files.
  • View and interact with output your AI sends to Ray using our MCP server.
  • Measure performance and pause execution in PHP.
  • Beautifully designed themes to match your style.

Download our free trial and send up to 20 messages each session. Enjoying Ray? Buy a license to unlock the app and get full access.

Documentation

You can find the full documentation for using Ray with PHP on https://myray.app/docs/php.

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

spatie/x-ray

Quickly scan source code for calls to Ray

420,021 81
spatie/global-ray

Enable Ray in all PHP files on your system

103,283 217
neo/literay

LiteRay is a simple open-source free alternative to the Ray desktop app

15 0
michabbb-backup/x-ray

Quickly scan source code for calls to Ray

16 0
spatie/wordpress-ray

Debug WordPress apps with ease

11,242 79