-
Notifications
You must be signed in to change notification settings - Fork 0
Home
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.
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_...');Company · AccountLink · File · AccessToken · AuthorizedUser · User · Member · Webhook
Payment · Checkout · Plan · Product · Membership · Refund · Invoice · PromoCode · PaymentMethod · SetupIntent
Transfer · FeeMarkup · Topup · Withdrawal · LedgerAccount · PayoutAccount · PayoutMethod
Dispute · DisputeAlert · ResolutionCenter
Shipment · Lead · Entry · Review · Affiliate · Stats
Experience · Course · CourseChapter · CourseLesson · CourseLessonInteraction · CourseStudent
ChatChannel · DmChannel · DmMember · Message · Reaction · Forum · ForumPost · SupportChannel · Notification
AdCampaign · AdGroup · Ad
App · AppBuild · AiChat · CompanyTokenTransaction
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.
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