Detect, diagnose and destroy PHP errors that are affecting your customers. With smart PHP error monitoring software from Raygun, you can be alerted to issues affecting your users, the second they happen.
Whatever your tech stack looks like, or whether you’re monitoring backend or frontend code, Raygun can ensure all issues are brought to your team’s attention. All your errors are reported to your Raygun dashboard automatically.
Add raygun4php to your composer.json file:
From the directory where composer.json is, run one of the following if you installed Composer locally:
This will download Raygun4PHP.
Add this code to an existing main class, or create a new file and import it from a main script.
Raygun will start monitoring your application for PHP errors that are present in your application. Errors are grouped by their root cause and smart notifications alert you to the things that need attention.
Start fixing the PHP errors and improve your app quality!
Raygun4PHP is a library you can easily add to your PHP-based code, which then allows you to transmit all errors and exceptions to your Raygun Crash Reporting dashboard. Installation is painless, and configuring your site to start real time error monitoring and crash reporting takes only five minutes.
Raygun’s support for PHP is designed to send both classical PHP errors, as well as PHP5 exception objects by providing Send() functions. You can add a set of tags (as an array of strings) to identify a certain error, add custom user data and customize how errors are grouped.
Raygun gives you full stacktraces for each and every error occurrence, along with environment information, HTTP requests, raw data, browser, OS, affected users and more. All the details you need to rectify issues quickly and efficiently. Raygun stores every single error event (no data sampling) so you’ll always have the right information at hand when needing to see when, why and how an error occurred.