Run ray(), dump(), and dd() From Any PHP Script
Published on by Paul Redmond
Global Ray is a package that enables
dd() from any PHP script:
While developers in the Symfony and Laravel communities enjoy debugging functions like
dump() that provide a nice output for developers who want to debug values in PHP applications, not all PHP communities and environments in which you might develop have dump functions.
Using Global Ray, you can run useful debugging functions in any PHP script, thanks to a PHP INI setting
composer global require spatie/global-ray# Install adds global ray file to `auto_prepend_file`# in your php.ini fileglobal-ray install
After installation you can run ray(),
dd() from any PHP script on your system.