jmslbam/ray-php-errors

Pushes errors that normally would go into the 'debug.log' to Spatie's Ray debugger

v1.1.1 2025-06-20 22:29 UTC

This package is auto-updated.

Last update: 2025-06-20 22:31:14 UTC


README

Pushes errors that normally would go into the error.log or debug.log straight into Spatie's Ray debugger

Installation

composer require jmslbam/ray-php-errors

Activation

Add ( new JMSLBAM\RayPHPErrors\Ray() )->init( true ); somewhere in your PHP code.

Passing true to the init() also shows the error on you screen. For example, with WordPress I pass WP_DEBUG_DISPLAY as argument.