ogeagleeye/monitor-php

OGEagleEye monitoring SDK for PHP 7.4+

Maintainers

Package info

github.com/muazzambaaboo/ogeagleeye-monitor-php

pkg:composer/ogeagleeye/monitor-php

Transparency log

Statistics

Installs: 5

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-07-22 07:40 UTC

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

  1. Get the ingest key and endpoint from your system admin.
  2. 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().