ogeagleeye / monitor-php
OGEagleEye monitoring SDK for PHP 7.4+
1.0.0
2026-07-22 07:40 UTC
Requires
- php: >=7.4
- ext-curl: *
- ext-json: *
Requires (Dev)
This package is not auto-updated.
Last update: 2026-07-23 13:48:31 UTC
README
PHP SDK for OGEagleEye. Ask your system admin for:
- Ingest key (
oge_…) - Events endpoint (e.g.
https://your-host/api/v1/events)
Requirements
- PHP 7.4+
ext-curl,ext-json
Install
composer require ogeagleeye/monitor-php
Setup
- Get the ingest key and endpoint from your system admin.
- Initialize early in your app bootstrap (before other code runs):
<?php use OGEagleEye\Monitor\OGEagleEye; require __DIR__ . '/vendor/autoload.php'; OGEagleEye::init([ 'key' => 'oge_YOUR_KEY_FROM_ADMIN', 'endpoint' => 'https://your-host/api/v1/events', 'environment' => 'production', // optional ]);
Or via environment variables:
OGEAGLEEYE_KEY=oge_YOUR_KEY_FROM_ADMIN OGEAGLEEYE_ENDPOINT=https://your-host/api/v1/events
OGEagleEye::init([ 'key' => getenv('OGEAGLEEYE_KEY'), 'endpoint' => getenv('OGEAGLEEYE_ENDPOINT'), ]);
That is enough. Exceptions and fatals are reported automatically after init().