Releases: sharpapi/php-core
Releases · sharpapi/php-core
v1.3.0 - Rate-Limit Awareness
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-Afterheader, sleeps, and retries (up to 3 times by default) - In-memory rate-limit tracking -
X-RateLimit-LimitandX-RateLimit-Remainingheaders 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()andgetRateLimitRemaining()let you inspect rate-limit state after any API call - Configurable -
setMaxRetryOnRateLimit()andsetRateLimitLowThreshold()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
v1.0.2
v1.0.1
v1.0.0 Release
Create README.md