Skip to content

Releases: danielgnh/polymarket-php

v1.0.0

12 Dec 15:15
1cf71e4

Choose a tag to compare

v1.0.0 Release

A PHP SDK for interacting with Polymarket's prediction markets.

What's Changed

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

12 Dec 09:13
3a34858

Choose a tag to compare

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

08 Dec 12:49

Choose a tag to compare

Full Changelog: v0.4.0...v0.4.1

v0.4.0

08 Dec 12:23
6e02c15

Choose a tag to compare

What's Changed

Full Changelog: v0.3.2...v0.4.0

v0.3.2

05 Dec 17:42
852bc5d

Choose a tag to compare

What's Changed

Full Changelog: v0.3.1...v0.3.2

v0.3.1

05 Dec 10:18
9b77e27

Choose a tag to compare

What's Changed

Full Changelog: v0.3.0...v0.3.1

v0.3.0

05 Dec 10:11
4f02ed3

Choose a tag to compare

What's Changed

Full Changelog: v0.2.0...v0.3.0

v0.2.0

26 Nov 16:51
9b39cff

Choose a tag to compare

What's Changed

Full Changelog: v0.1.0...v0.2.0

Polymarket PHP v0.1.0

26 Nov 15:53

Choose a tag to compare

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