PHP 7.4+
A long-lived project that still receives updates
Debug with Ray to fix problems faster
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

^7.20|^8.18|^9.0|^10.0|^11.0|^12.0|^13.0
nesbot/carbon
^2.63|^3.8.4
phpstan/phpstan
^1.10.57|^2.0.3
phpunit/phpunit
^9.5
^0.19.2|^1.0.1|^2.0.0
spatie/phpunit-snapshot-assertions
^4.2
spatie/test-time
^1.2

Runtime

ramsey/uuid
^3.0|^4.1
spatie/backtrace
^1.7.1
spatie/macroable
^1.0|^2.0
symfony/stopwatch
^4.2|^5.1|^6.0|^7.0|^8.0
symfony/var-dumper
^4.2|^5.1|^6.0|^7.0.3|^8.0
 Project Readme

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.