agentisend / agentisend-php
AgentiSend PHP client: transactional email API for AI agents, with budgets, a free preflight and refusals that name the fix.
v0.1.0
2026-09-27 16:59 UTC
Requires
- php: >=8.0
- ext-curl: *
- ext-json: *
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
agentisend-php
Generated from openapi.json. Do not edit src/Client.php — run pnpm sdk:generate.
$client = new AgentiSend\Client(); // reads AGENTISEND_API_KEY $sent = $client->postEmails([ 'from' => 'Acme <hello@acme.com>', 'to' => ['you@example.com'], 'subject' => 'Hi', 'text' => 'Hello', ]);
Install with Composer:
composer require agentisend/agentisend-php
No dependencies beyond curl and json, which every PHP install has. Laravel users can wrap it; nothing here assumes a framework.
Refusals throw AgentiSend\ApiError with code, fix, docsUrl, requestId
and retryAfterSeconds. retryable() is true only for 429 and 5xx.