autlantic / billing
Official Autlantic Billing server SDK for PHP (hosted API + webhook verify)
Requires
- php: >=8.1
- ext-curl: *
- ext-hash: *
- ext-json: *
Requires (Dev)
- phpunit/phpunit: ^10.5
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Autlantic Billing — PHP
USDC payments on Base
Official server client for the hosted Autlantic Billing API.
Why this SDK
Same Billing API as Node — create subscriptions, one-time payments, and shareable payment links; verify webhooks. Non-custodial USDC on Base settles to your merchant payoutAddressEvm. API keys and webhook secrets stay on the server.
Install
composer require autlantic/billing
Packagist-friendly mirror: Autlantic/billing-php. Until Packagist indexes:
composer config repositories.autlantic vcs https://github.com/Autlantic/billing-php.git composer require autlantic/billing:^0.1
For local development from this monorepo, path-require sdks/php. Requires PHP 8.1+, ext-curl, ext-json, ext-hash.
Quick start
use Autlantic\Billing\AutlanticBilling; $billing = AutlanticBilling::fromEnv(); // AUTLANTIC_BILLING_API_KEY $link = $billing->createPaymentLink([ 'amountUsdc' => 42, 'merchantRefPrefix' => 'invoice', 'successUrl' => 'myapp://billing/success', 'cancelUrl' => 'myapp://billing/cancel', ]); // Share $link['url'] or open it with a mobile Checkout SDK
Webhooks
Verify x-autlantic-signature with your portal endpoint secret:
use Autlantic\Billing\Webhook; $ok = Webhook::verify($secret, $rawBody, $_SERVER['HTTP_X_AUTLANTIC_SIGNATURE'] ?? null); $event = Webhook::parseEvent($rawBody); // Unlock on invoice.paid / payment.paid / subscription.activated
Environment
| Env var | Purpose |
|---|---|
AUTLANTIC_BILLING_API_KEY |
abk_test_… or abk_live_… (required) |
AUTLANTIC_BILLING_API_URL |
Default https://billing.autlantic.com |
AUTLANTIC_BILLING_MERCHANT_ID |
Optional merchant id |
Hosted mode only. Pins Autlantic-Version: 2026-01-01.
Documentation
| PHP SDK | API reference |
| Languages | All SDK surfaces |
| Mobile apps | Checkout presenters |
| Webhooks | Signature & events |
| Terms · Privacy · Security | Legal |
Develop
composer install
composer test
License
MIT · Operated by Autlantic Limited (UK company no. 17422039).
Part of Autlantic Payments SDK.