Skip to content
Bakhtarian edited this page May 14, 2026 · 2 revisions

Whop PHP SDK — Wiki

Reference documentation for devmatchable/whop-php-sdk, a framework-agnostic PHP client for the Whop API.

For installation and quick-start usage, see the README. This wiki documents every API entity the SDK exposes, with its endpoints, parameters, and return types.

How the SDK is organised

Matchable\Whop\WhopApiClient exposes the full Whop API as public readonly resource properties — one per entity. Each resource method maps to a single Whop API endpoint and returns either a typed DTO (where one exists) or the decoded response array. Every failure surfaces as a Matchable\Whop\Exception\WhopException — catch that for all SDK errors, or a specific subtype (WhopApiException, TransportException, SerializationException, MissingArgumentsException, WebhookVerificationException).

use Matchable\Whop\WhopApiClient;

$client = new WhopApiClient(httpClient: $psr18Client, apiKey: 'apik_...');
$company = $client->companies->get('biz_...');

Entity reference

Core

Company · AccountLink · File · AccessToken · AuthorizedUser · User · Member · Webhook

Payments & Billing

Payment · Checkout · Plan · Product · Membership · Refund · Invoice · PromoCode · PaymentMethod · SetupIntent

Platform & Finance

Transfer · FeeMarkup · Topup · Withdrawal · LedgerAccount · PayoutAccount · PayoutMethod

Disputes

Dispute · DisputeAlert · ResolutionCenter

Commerce

Shipment · Lead · Entry · Review · Affiliate · Stats

Experiences & Courses

Experience · Course · CourseChapter · CourseLesson · CourseLessonInteraction · CourseStudent

Communication

ChatChannel · DmChannel · DmMember · Message · Reaction · Forum · ForumPost · SupportChannel · Notification

Advertising

AdCampaign · AdGroup · Ad

Apps & AI

App · AppBuild · AiChat · CompanyTokenTransaction

Verifications

Verification


Endpoint details in this wiki are derived from the SDK's resource classes (the authoritative map of what the client calls) and cross-referenced with the official Whop API documentation.

Clone this wiki locally