Releases: danielgnh/polymarket-php
Releases · danielgnh/polymarket-php
v1.0.0
v1.0.0 Release
A PHP SDK for interacting with Polymarket's prediction markets.
What's Changed
- feat: use polymarket api key from .env by @danielgnh in #15
What's Included
Market Data (Gamma API)
- Search, list, and retrieve market information
- Filter markets by status, category, and more
- Pagination support for large result sets
Trading Operations (CLOB API)
- Create and cancel orders
- View order history and status
- Full order book access
Full Changelog: v0.5.0...v1.0.0
v0.5.0
What's Changed
- refactor(gamma)!: simplify search API by removing Search resource by @danielgnh in #13
Full Changelog: v0.4.1...v0.5.0
v0.4.1
Full Changelog: v0.4.0...v0.4.1
v0.4.0
v0.3.2
What's Changed
- chore: add permissions to github actions by @danielgnh in #6
- Support PHP 8.1 by @danielgnh in #8
Full Changelog: v0.3.1...v0.3.2
v0.3.1
What's Changed
- Add Dependabot configuration file by @danielgnh in #5
Full Changelog: v0.3.0...v0.3.1
v0.3.0
v0.2.0
Polymarket PHP v0.1.0
The first beta release of the Polymarket PHP SDK is now available! This SDK provides a type-safe interface for interacting with the Polymarket API.
Features
- Type-Safe: Built with PHP 8.4+ strict types and modern features
- PSR Standards: Follows PSR-12, PSR-18 HTTP client interface
- Markets API: List, search, and retrieve market data
- Orders API: Create, list, cancel, and manage orders
- Comprehensive Error Handling: Detailed exception hierarchy for all error scenarios
What's Included
Core Components:
- Client - Main SDK entry point
- Config - Flexible configuration management
- Markets - Market data and search functionality
- Orders - Order creation and management
- HTTP client abstraction (Guzzle + PSR-18)
Error Handling:
- AuthenticationException - 401/403 errors
- ValidationException - 400/422 errors
- RateLimitException - 429 error
- NotFoundException - 404 error
- ApiException - 5xx server errors
- JsonParseException - JSON parsing errors
Type Safety:
- Enums for OrderSide, OrderType, OrderStatus, SignatureType
- Strict type hints throughout
- PHPStan level 9 compliance
Requirements
- PHP 8.4 or higher
- Composer
License
This project is licensed under the MIT License.
💬 Feedback
Found a bug? Have a feature request? Please https://github.com/danielgnh/polymarket-php-sdk/issues!
Full Changelog: https://github.com/danielgnh/polymarket-php-sdk/commits/v0.1.0