Skip to content

Releases: sharpapi/php-core

v1.3.0 - Rate-Limit Awareness

06 Feb 07:41

Choose a tag to compare

What's New

Rate-Limit Awareness

The SDK now automatically handles API rate limits:

  • Automatic 429 retry - when the API returns HTTP 429 (Too Many Requests), the client reads the Retry-After header, sleeps, and retries (up to 3 times by default)
  • In-memory rate-limit tracking - X-RateLimit-Limit and X-RateLimit-Remaining headers are extracted from every API response
  • Adaptive polling - during fetchResults(), polling intervals are automatically increased when remaining requests drop below a configurable threshold
  • Public getters - getRateLimitLimit() and getRateLimitRemaining() let you inspect rate-limit state after any API call
  • Configurable - setMaxRetryOnRateLimit() and setRateLimitLowThreshold() to tune behavior

Other Changes

  • User-Agent bumped to SharpAPIPHPAgent/1.3.0
  • Branch alias updated to 1.3.x-dev

Backward Compatibility

Fully backward compatible - no constructor changes, no signature changes to existing public/protected methods. All 25 child packages inherit the new behavior automatically.

v1.2.0

06 Feb 07:10

Choose a tag to compare

What's New

  • Added requests_per_minute field to the SubscriptionInfo DTO and quota() method response
  • Documented the quota() method and all its returned fields in the README

v1.0.2

01 May 11:02

Choose a tag to compare

  • expanding multipart requests

v1.0.1

10 Jan 09:42

Choose a tag to compare

Adding current_subscription_reset to quota info

v1.0.0 Release

13 Nov 12:44
2b38f27

Choose a tag to compare

Create README.md