flosch/stripe-bundle
Symfony bundle integrating the Stripe PHP library, with service configuration and dependency injection for convenient access to Stripe payments, customers, subscriptions, and webhook handling.
flosch/stripe-bundle is a Symfony bundle: no service provider, no facade, no publishable config, no Laravel discovery. It exists solely to register the Stripe PHP SDK inside Symfony's DI container. On a Laravel stack this is a category mismatch, and the real decision becomes stripe/stripe-php (plus laravel/cashier if subscriptions are in scope).Stripe::setApiKey() and exposes a configured client as a container service. The decision it supports is narrow — "take a third-party dependency for a config convenience" vs. "write the service definition ourselves in under an hour."Consider it only when all of the following hold:
Look elsewhere when:
laravel/cashier + stripe/stripe-php; Cashier covers subscriptions, webhooks, invoices, and SCA the bundle never touches.Executives: "This is a small, MIT-licensed convenience wrapper that saves a Symfony team a few lines of configuration when calling Stripe. It is not a payments product and adds no billing capability — we still depend on Stripe for that. It does not apply to our Laravel services at all; adopting it there would be a category error." Adoption cost is near zero and strategic value is near zero. Don't book it as a build-vs-buy win or as de-risking revenue.
Engineering: "Single-maintainer Symfony bundle, ~30 stars, zero dependents, that registers the Stripe SDK in Symfony's DI container and injects API keys from config. The honest alternative is writing the service definition and a Laravel service provider ourselves in under an hour, which removes a third-party dependency from the payment path and lets us pin the Stripe API version explicitly. Recommendation: use it only on existing Symfony 3–5 apps where it's already in play and plan a quiet exit; on any new Laravel work, wire stripe/stripe-php directly and build the pieces the bundle doesn't cover — webhook signature verification, idempotency keys, retry/backoff, and a version-pinned SDK client."
How can I help you explore Laravel packages today?