jonpurvis/faker-stripe
A Faker extension for generating realistic fake Stripe data—customer, payment intent, subscription, and other object IDs—so you can seed test databases and write fixtures without calling the Stripe API.
Consider adoption when:
Look elsewhere or supplement when:
stripe-mock, or HTTP-level mocking instead.For executives: This is a small, MIT-licensed developer productivity package that lets engineering generate realistic fake Stripe IDs for tests, seeders, and demos without touching Stripe’s API. It reduces setup friction, makes CI more reliable, and lets teams build billing-related UI before Stripe sandbox access is ready. The risk is low: it is a test-only dependency with a narrow scope and no production runtime impact. The trade-off is equally clear—it does not simulate Stripe behavior, so it complements, rather than replaces, real Stripe integration testing.
For engineering: Register the Faker provider, use it in Laravel factories and seeders, and generate structurally correct IDs in tests without network calls or credentials. It removes repetitive string-building and keeps fixtures consistent with Stripe’s ID conventions. It is not a Stripe mock: pair it with Stripe test mode or HTTP mocking for integration, contract, and webhook tests. Adopt it in dev/test only, pin the version, and keep the usage surface small.
How can I help you explore Laravel packages today?