Weave 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

Stripe Bundle Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Framework-fit triage — the deciding factor. Despite being requested as a Laravel/PHP package, 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).
  • Build vs. buy at the glue layer only. The bundle delivers roughly 10–50 lines of value: a YAML config tree that calls 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."
  • Scoping discipline — keep payments out of the wrong column. Adopting this is not "payments shipped." Subscriptions, webhooks, signature verification, SCA/3DS, dunning, proration, tax, refunds, and idempotency all live outside the bundle. A PM should explicitly refuse to book this as a billing capability.
  • Roadmap sequencing for legacy Symfony. Plausible as a 1-day de-risking spike on a Symfony 3–5 codebase where Stripe calls are needed quickly and payments aren't yet a permanent surface. It is not a foundation for a multi-year billing roadmap.
  • Inherited-codebase posture. For an acquired or inherited Symfony app already on this bundle, the sensible call is "keep it short-term, plan a quiet exit to plain SDK wire-up" — not "invest in it."

When to Consider This Package

Consider it only when all of the following hold:

  • The application is genuinely Symfony 3.x–5.x — not Laravel, not vanilla PHP. For a Laravel codebase, do not install; copy the wiring pattern into a first-party service provider.
  • Stripe is the committed processor with no migration planned.
  • The payment surface is small and mostly one-shot charges or PaymentIntents; you are not building full subscription lifecycle management.
  • You accept single-maintainer risk: ~30 stars, 0 dependents, no CI/security policy evidence, no SLA — and payments is adjacent to revenue.
  • You can tolerate an older Symfony/PHP constraint without it blocking a framework upgrade.

Look elsewhere when:

  • Laravel. Use laravel/cashier + stripe/stripe-php; Cashier covers subscriptions, webhooks, invoices, and SCA the bundle never touches.
  • Modern Symfony (6/7). Wire the official SDK as a service yourself — trivial, and it keeps an unmaintained dependency off the payment path.
  • You need billing behavior, not container wiring. Stripe Billing, Cashier, or a merchant-of-record (Paddle, Lemon Squeezy) if tax and compliance are the actual pain.
  • Security response or audit scope matters. A revenue-adjacent dependency with one maintainer and zero downstream usage is a supply-chain question, not a convenience question; the bundle adds no PCI or security controls.
  • You need webhook signature verification, idempotency, retries, or API version pinning out of the box — none are provided.

How to Pitch It (Stakeholders)

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."

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.
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums
rlacerda83/query-parser
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings