PHPackages                             polymarket-php/polymarket - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. polymarket-php/polymarket

ActiveLibrary[API Development](/categories/api)

polymarket-php/polymarket
=========================

PHP Package for Polymarket API Integration

v1.2.0(3mo ago)11410↓50%4[1 issues](https://github.com/polymarket-php/polymarket/issues)[2 PRs](https://github.com/polymarket-php/polymarket/pulls)2MITPHPPHP ^8.1CI passing

Since Nov 26Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/polymarket-php/polymarket)[ Packagist](https://packagist.org/packages/polymarket-php/polymarket)[ RSS](/packages/polymarket-php-polymarket/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (16)Versions (17)Used By (2)

Polymarket PHP SDK
==================

[](#polymarket-php-sdk)

[Polymarket API](https://polymarket.com) PHP SDK for interacting with the prediction markets and managing orders.

You can search for the markets, events, create / delete orders, send concurrent requests and much more.

[What is polymarket?](https://docs.polymarket.com/polymarket-learn/get-started/what-is-polymarket)

[![Latest Version on Packagist](https://camo.githubusercontent.com/159eb09ba2511b1d18caf4b11989437dc1dce222485f381ee65e246be3df3b4c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706f6c796d61726b65742d7068702f706f6c796d61726b65742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/polymarket-php/polymarket)[![PHP Version](https://camo.githubusercontent.com/80eedd72df47e98ba81fc358cce7610720b3233c3ee31efc7725dd29c29b6c94/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f706f6c796d61726b65742d7068702f706f6c796d61726b65742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/polymarket-php/polymarket)[![Total Downloads](https://camo.githubusercontent.com/1b022d698a99c84d83ba33c94ec526aee70ff5c86bf7d4ce03a670ebd314baab/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706f6c796d61726b65742d7068702f706f6c796d61726b65742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/polymarket-php/polymarket)[![License](https://camo.githubusercontent.com/1f7319e119127c5aa00eeb53b9242d285a9388393915c312755c3e3000110ce1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f706f6c796d61726b65742d7068702f706f6c796d61726b65742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/polymarket-php/polymarket)[![Tests](https://camo.githubusercontent.com/86046a8c260094ec33575752267e0b8dfeb4527321fe0774cb41080732dd9beb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f706f6c796d61726b65742d7068702f706f6c796d61726b65742f74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/polymarket-php/polymarket/actions)[![PHPStan](https://camo.githubusercontent.com/65c9bbcae389e4ca189f0239aa80ea655e986c4d7d4d586a15927056765c173f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c25323031302d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://phpstan.org/)

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- Composer

Installation
------------

[](#installation)

Install the package via Composer:

```
composer require polymarket-php/polymarket
```

Configuration
-------------

[](#configuration)

Add your polymarket credentials to your `.env` file:

```
POLYMARKET_API_KEY=your-api-key
POLYMARKET_PRIVATE_KEY=0x...
```

Here is documentation [how to export you private key](https://docs.polymarket.com/polymarket-learn/FAQ/how-to-export-private-key)

Quick Start
-----------

[](#quick-start)

```
