v0.0.1
Initial release of the official PHP SDK for HumanTone.
Features
- Three endpoints:
humanize,detect,account.get - Strict-typed PHP 8.2+ API with named arguments and
final readonlyDTOs - Full exception hierarchy with
errorCode,requestId,details,retryableaccessors - Configurable retry policy (POST does not retry on 5xx/network by default to avoid double-billing on humanize)
- PSR-18 HTTP client interface (Guzzle is the default but you can inject Symfony HttpClient or any other PSR-18 client)
HUMANTONE_API_KEYandHUMANTONE_BASE_URLenv var supportRetry-Afterheader parsed in both numeric seconds and HTTP-date formats
Install
composer require humantone/humantone-phpCompatibility
PHP 8.2, 8.3, 8.4 on Linux, macOS, Windows.
Documentation
See README for usage examples and configuration options.