Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 855 Bytes

File metadata and controls

21 lines (14 loc) · 855 Bytes

Mozzy Generic PHP Connector

Server-only Mozzy Connector Protocol v1 reporting for PHP 8.2+. It reports heartbeats, caught exceptions, and fatal PHP shutdown errors without transmitting request bodies, cookies, sessions, environment variables, configuration, content, or user data.

use Mozzy\Php\Reporter;

$mozzy = Reporter::fromEnvironment();
$mozzy->registerFatalHandler();
$mozzy->heartbeat();

Keep MOZZY_ENDPOINT and MOZZY_ASSISTANCE_TOKEN in the server environment. Reporting failures are swallowed and never replace the application's own error handling.

Requirements

  • PHP 8.2 or newer
  • HTTPS Mozzy event endpoint
  • cURL or PHP stream transport

The package deliberately excludes request bodies, headers, cookies, sessions, environment variables, configuration, content, personal data, stack traces, and source file paths.