pokerprovide / sdk
Official PokerProvide Poker-as-a-Service SDK for PHP
Requires
- php: >=8.0
- ext-curl: *
- ext-json: *
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-10-01 12:34:39 UTC
README
Official PHP 8+ SDK for the PokerProvide Poker-as-a-Service B2B API. Version 1.1.0.
Install
composer require pokerprovide/sdk
Or drop these files into your project directly (no build step required for the core client).
Quick start
See example.php in this package.
Your sandbox public key (pk_sbx_YOUR_PUBLIC_KEY) is pre-filled in the example. Never commit your secret key —
load it from an environment variable (PP_SECRET_KEY).
What's included
sign()— HMAC-SHA256 body signing (setsX-Operator-Signature).createSession— create a player session / launch token for the white-label client.walletBalance/walletDebit/walletCredit— seamless wallet calls (idempotent ontransaction_id).tournaments.*— Tournament Factory API:list,get,structure,payouts,players,results,register(idempotent buy-in) andunregister.verifyWebhook— timing-safe verification of inbound webhook signatures (X-PokerProvide-Signature).
Authentication
Every authenticated request is signed: X-Operator-Signature = HMAC_SHA256(secret_key, raw_json_body),
sent alongside X-Operator-Key: <public_key>. The SDK handles this for you.
Base URLs
- Production:
https://api.pokerprovide.com - Sandbox: pass your sandbox base URL to the constructor if different.
See PUBLISHING.md to publish this SDK to Composer / Packagist.
Generated by the PokerProvide Developer Portal. Do not publish to public registries without permission.