Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Whop Symfony Bundle Laravel Package

devmatchable/whop-symfony-bundle

Symfony 7 bundle for the Whop PHP SDK. Autowires WhopApiClient and WebhookVerifier from config, provides a ready-to-use (overridable) webhook controller/route, and supports sandbox base URL and custom HTTP client selection.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Feature Development: Accelerates integration of Whop’s payment/webhook capabilities into Symfony-based applications by reducing boilerplate (e.g., API client autowiring, webhook verification, and event dispatching). Enables rapid prototyping of payment flows, subscription management, or webhook-driven workflows (e.g., order fulfillment, fraud alerts).
  • Roadmap Prioritization: Justifies investing in Whop as a payment/subscription platform if the team is already using Symfony. Aligns with roadmap items like:
    • Real-time payment processing: Webhook events for instant order updates.
    • Subscription management: Automated renewals, cancellations, or downgrades via Whop’s API.
    • Multi-tenant SaaS: Isolate Whop API keys/secrets per tenant using Symfony’s parameter bags or environment variables.
  • Build vs. Buy: Buy—this bundle eliminates ~50% of the dev effort to integrate Whop’s SDK manually (e.g., no need to reinvent webhook verification, route handling, or event dispatching). The SDK itself is framework-agnostic, but the bundle’s Symfony-specific optimizations (e.g., Flex recipe, autowiring) save weeks of work.
  • Use Cases:
    • E-commerce: Sync Whop payments with inventory systems via webhooks.
    • SaaS Billing: Trigger customer notifications (e.g., "Your plan renews in 3 days") using Whop’s subscription.updated events.
    • Marketplaces: Validate seller payouts or buyer refunds via Whop’s API.
    • Internal Tools: Build admin dashboards to audit payments/subscriptions (e.g., fetch WhopApiClient->payments->list()).

When to Consider This Package

  • Adopt if:
    • Your team uses Symfony 7+ and PHP 8.4+ (hard requirements).
    • You need Whop’s API/webhooks and want to avoid manual integration (e.g., no time to build a custom webhook verifier or event system).
    • Your roadmap includes real-time payment events (e.g., webhook-driven actions) or recurring billing (subscriptions).
    • You’re evaluating multiple payment providers and want to prototype Whop quickly.
  • Look elsewhere if:
    • You’re not using Symfony (this bundle is Symfony-specific; the raw Whop PHP SDK is framework-agnostic).
    • You need production stability: The bundle is pre-1.0.0 and lacks stars/community adoption (mitigate by forking or contributing to stabilize it).
    • Your use case is simple (e.g., one-off payments with no webhooks). For this, the raw SDK may suffice.
    • You require advanced customization of Whop’s API responses (e.g., mapping raw webhook payloads to complex DTOs). The bundle passes raw array payloads to handlers—you’ll need to build your own DTO layer.
    • You’re constrained by Symfony’s event system: If your team avoids Symfony events, the bundle’s WhopWebhookReceivedEvent may feel like overkill (though it’s optional).

How to Pitch It (Stakeholders)

For Executives:

*"This Symfony bundle lets us integrate Whop’s payment/subscription platform with minimal dev effort. It handles the heavy lifting—like verifying webhook signatures and dispatching payment events—so our team can focus on building features like:

  • Real-time order fulfillment (e.g., trigger inventory updates when Whop payments succeed).
  • Subscription-driven workflows (e.g., send emails when a user’s plan renews or cancels).
  • Multi-tenant billing (isolate Whop API keys per customer tenant).

By using this bundle, we avoid reinventing the wheel for webhook security or API client setup, saving weeks of development time. The tradeoff? We’re betting on Whop’s growth (low stars now, but early adoption gives us a first-mover advantage). If we proceed, we’ll monitor the bundle’s stability and contribute to stabilize it if needed."*

For Engineering:

*"This bundle glues Whop’s PHP SDK into Symfony with three key benefits:

  1. Zero-config API access: Autowire WhopApiClient anywhere in your app (e.g., new PaymentService(WhopApiClient $whop)).
  2. Webhook-ready: Handles signature verification, JSON parsing, and dispatches events via Symfony’s EventDispatcher. Just subscribe to WhopWebhookReceivedEvent to react to payments/subscriptions.
  3. Flexible: Override the default webhook handler if you need custom logic (e.g., route events to different services).

Tradeoffs:

  • Pre-1.0.0: Not production-ready yet (but we can fork it or contribute to stabilize it).
  • Symfony-only: If we’re not using Symfony, we’d need to integrate the raw SDK manually.
  • Raw payloads: Webhook events arrive as array, so we’ll need to map them to our domain models (but that’s a one-time cost).

Recommendation: Use this for Whop integration if we’re on Symfony 7+. For other frameworks, evaluate the raw SDK or wait for this bundle to stabilize."*

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
besmartand-pro/php-quality-config
sentix/ai-chatbot
terminal42/code-quality-tools
codifyo/ts-generator-bundle
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity