Skip to content

Feature

PHP error monitoring for custom applications

A package with no framework dependency that reports the exceptions and errors of your PHP application, custom-built or running on your own framework, into the same issues as your Laravel projects.

composer require quiet-guard/monitor-php
The PHP package, in one command
An issue's latest stack trace: the application frames, the dependency frames folded, and the code snippet of the selected frame with a masked line. An issue's latest stack trace: the application frames, the dependency frames folded, and the code snippet of the selected frame with a masked line.

The problem

A custom PHP application often has no exception pipeline. An uncaught error ends up in an error_log nobody reads or on a blank page, and you hear about it from a client, with no trace and no count.

What you get

  • The full stack trace, throw site first, never the call arguments, and source lines around your application's frames
  • Values masked by shape before sending, emails, IBANs, cards and API tokens, and by name for the keys you list
  • The same issues, the same alerts and the same quota as your Laravel projects, in the same team
  • BackupCipher, to encrypt an archive as a stream to your team's public key
  • PHP 8.2 or later, ext-curl and ext-sodium, and no dependency beyond psr/log
  • No log collection, no composer.lock reading, no heartbeat and no backup upload: sendLogs() and sendDependencies() send what you pass them

How it works

  1. A Reporter you build

    A Config object holds the project key, a Reporter sends. No container, no facade, no configuration file: a few lines at the top of your bootstrap, with the release passed by hand.

  2. A global handler in one call

    ErrorHandler::register() reports uncaught exceptions, fatal errors at shutdown and, by default, E_USER_ERROR and E_RECOVERABLE_ERROR. An exception handler already in place still runs after it; without one, the exception is written to error_log.

  3. Reporting cannot break you

    Every send returns a boolean and never throws. An error raised at the same place is sent once per request, and twenty errors at most per request by default.

Related features

Exception tracking

Every exception your Laravel applications throw, grouped by cause rather than by occurrence, with the full stack trace and the commit that introduced it.

Symfony bundle

The exceptions your Symfony applications throw, grouped by cause in the same panel as your Laravel projects, with the full stack trace, the code around your own frames and the request behind it.

WordPress plugin

The exceptions and fatal errors of your WordPress sites, grouped by cause in the same panel as your Laravel and Symfony projects, with the code of the theme or plugin at fault.

No card required. Up and running in minutes.

All features