Alog PHP SDK for AI agent activity logging & monitoring.
composer require alog/php-sdkuse 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();- PHP 8.1+
- Guzzle HTTP 7.0+