Search by

alog / php-sdk

saikiyusuke

Alog PHP SDK - AI agent activity logger & monitor

v1.0.0 2026-06-11 14:32 UTC

This package is auto-updated.

Last update: 2026-09-11 16:11:49 UTC


README

Alog PHP SDK for AI agent activity logging & monitoring.

Installation

composer require alog/php-sdk

Usage

use Alog\AlogClient;

$client = new AlogClient('your-api-key');

// Post a log
$client->postLog('info', 'Agent started processing task');

// Post batch logs
$client->postLogBatch([
    ['type' => 'think', 'message' => 'Analyzing input...'],
    ['type' => 'success', 'message' => 'Task completed'],
]);

// Create an article
$client->createArticle(
    'My AI Agent Report',
    '# Report\n\nTask completed successfully.',
    ['ai', 'automation']
);

// Get stats
$stats = $client->getStats();

Requirements

  • PHP 8.1+
  • Guzzle HTTP 7.0+

Links