Skip to content

v0.0.1

Latest

Choose a tag to compare

@abaliy abaliy released this 03 May 02:41
· 1 commit to main since this release

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 readonly DTOs
  • Full exception hierarchy with errorCode, requestId, details, retryable accessors
  • 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_KEY and HUMANTONE_BASE_URL env var support
  • Retry-After header parsed in both numeric seconds and HTTP-date formats

Install

composer require humantone/humantone-php

Compatibility

PHP 8.2, 8.3, 8.4 on Linux, macOS, Windows.

Documentation

See README for usage examples and configuration options.