PHPackages                             jonpurvis/faker-stripe - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. jonpurvis/faker-stripe

ActiveLibrary[Testing &amp; Quality](/categories/testing)

jonpurvis/faker-stripe
======================

Faker provider for generating fake Stripe IDs

v5.1.0(3mo ago)8873.7k↓52.3%3MITPHPPHP ^8.3CI passing

Since May 15Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/JonPurvis/faker-stripe)[ Packagist](https://packagist.org/packages/jonpurvis/faker-stripe)[ RSS](/packages/jonpurvis-faker-stripe/feed)WikiDiscussions main Synced 4d ago

READMEChangelog (10)Dependencies (6)Versions (23)Used By (0)

[![FakerPHP Stripe ID Provider Banner](assets/banner.png)](assets/banner.png)

FakerPHP Stripe ID Provider
===========================

[](#fakerphp-stripe-id-provider)

[![GitHub Workflow Status](https://camo.githubusercontent.com/1001abd4646525fa3ef141617eaccb6a567e10da6014e4df30ef67d3e4e947cd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a6f6e7075727669732f66616b65722d7374726970652f63692e796d6c)](https://camo.githubusercontent.com/1001abd4646525fa3ef141617eaccb6a567e10da6014e4df30ef67d3e4e947cd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a6f6e7075727669732f66616b65722d7374726970652f63692e796d6c)[![GitHub last commit](https://camo.githubusercontent.com/14580085ccfde7e67319b7d867f048a3a95a16742c6edad7f918d91a6e0a844b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f6a6f6e7075727669732f66616b65722d737472697065)](https://camo.githubusercontent.com/14580085ccfde7e67319b7d867f048a3a95a16742c6edad7f918d91a6e0a844b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f6a6f6e7075727669732f66616b65722d737472697065)[![Packagist PHP Version](https://camo.githubusercontent.com/79aa0bf894ef8d99baa626023f61b8e35ab647651c053d1536ca2167cfe88351/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f6a6f6e7075727669732f66616b65722d7374726970652f706870)](https://camo.githubusercontent.com/79aa0bf894ef8d99baa626023f61b8e35ab647651c053d1536ca2167cfe88351/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f6a6f6e7075727669732f66616b65722d7374726970652f706870)[![GitHub issues](https://camo.githubusercontent.com/ad2bb9f10b786a31b663f69995972aadcff05f77d6a63a7f81d979244735994e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6a6f6e7075727669732f66616b65722d737472697065)](https://camo.githubusercontent.com/ad2bb9f10b786a31b663f69995972aadcff05f77d6a63a7f81d979244735994e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6a6f6e7075727669732f66616b65722d737472697065)[![GitHub](https://camo.githubusercontent.com/47cce1cab85299c8c9b9c795a9db17d8c69b36a020606bc4f283a133b0818506/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6a6f6e7075727669732f66616b65722d737472697065)](https://camo.githubusercontent.com/47cce1cab85299c8c9b9c795a9db17d8c69b36a020606bc4f283a133b0818506/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6a6f6e7075727669732f66616b65722d737472697065)[![Packagist Downloads](https://camo.githubusercontent.com/b8571eee8a0e63e8bf4d4c9eb75c8abac08367c7875031606b2c80d0f0c4c8ad/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a6f6e7075727669732f66616b65722d737472697065)](https://camo.githubusercontent.com/b8571eee8a0e63e8bf4d4c9eb75c8abac08367c7875031606b2c80d0f0c4c8ad/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a6f6e7075727669732f66616b65722d737472697065)

👋 Introduction
--------------

[](#-introduction)

This package allows FakerPHP to generate fake IDs which have the same structure you can expect to be returned from Stripe. The wonderful [Pest](https://pestphp.com/) is used to run tests contained within this package, which requires a minimum PHP Version of 8.2.

This package is listed on the [official FakerPHP website](https://fakerphp.org/third-party/) as a third party library.

✨Features
---------

[](#features)

This package can currently generate fake IDs for the following Stripe resources. To avoid any confusion, the names of resources *should* match what's in this package.

### Core Resources

[](#core-resources)

API ResourceMethodExample[Balance Transactions](https://stripe.com/docs/api/balance_transactions)`stripeCoreBalanceTransactionId()``txn_na40ulkbDvvegzALfY8w61udH`[Charges](https://stripe.com/docs/api/charges)`stripeCoreChargeId()``ch_Dxy18EPyj6XXvqQiqApPQ8dA`[Customers](https://stripe.com/docs/api/customers)`stripeCoreCustomerId()``cus_uW8qUwsTwKKtY3`[Disputes](https://stripe.com/docs/api/disputes)`stripeCoreDisputeId()``dp_e3ZeEytdlpOxMtRg9M88RMcq`[Events](https://stripe.com/docs/api/events)`stripeCoreEventId()``evt_diyd59RDTVw8ZxrnkOt62mFS`[Event Destinations](https://docs.stripe.com/api/v2/core/event_destinations)`stripeCoreEventDestinationId()``ed_d1RhD6TdVjw78ZxrnkOt62mFS`[Files](https://stripe.com/docs/api/files)`stripeCoreFileId()``file_qrbRTo7XbytwvE6w3SQU8QXK`[File Links](https://stripe.com/docs/api/file_links)`stripeCoreFileLinkId()``link_Z5Tesn6zQYYdov5R3bCblM8A`[FX Quotes](https://docs.stripe.com/api/fx_quotes)`stripeCoreFxQuoteId()``fxq_An1iMLYse0YRmS43Ls2ZNCdd`[Mandates](https://stripe.com/docs/api/mandates)`stripeCoreMandateId()``mandate_S4EbkGH8MFAOWUXivQqcV7wx`[PaymentIntents](https://stripe.com/docs/api/payment_intents)`stripeCorePaymentIntentId()``pi_KiAjc3WFzvswIhq8IkCLXNBW`[PaymentIntents](https://stripe.com/docs/api/payment_intents)`stripeCorePaymentIntentClientSecret()``pi_rZh1PKbBkmMFkHve9GKRKyg4_secret_dr3lRVfoKD8ew3BUmYZYuVONV`[SetupIntents](https://stripe.com/docs/api/setup_intents)`stripeCoreSetupIntentId()``seti_yeYZcpT970pn6sBXlAkj8AbK`[SetupIntents](https://stripe.com/docs/api/setup_intents)`stripeCoreSetupIntentClientSecret()``seti_xFyqGss1WNuKVCKf1KnXfD3b_secret_Yy5L7jzP4RuoQrCiIBqXn9FWuSvX3z6`[SetupAttempts](https://stripe.com/docs/api/setup_attempts)`stripeCoreSetupAttemptId()``setatt_JBHfYghz8HiScAnOcOKin75X`[Payouts](https://stripe.com/docs/api/payouts)`stripeCorePayoutId()``po_YqFWOxztWRuLCJezThbHktTP`[Refunds](https://stripe.com/docs/api/refunds)`stripeCoreRefundId()``re_3BebPOs89OAgEtXAOG0c1eF4`[Payment Records](https://docs.stripe.com/api/payment-record)`stripeCorePaymentRecordId()``pr_5RV730PrHyAEi`[Payment Attempt Records](https://docs.stripe.com/api/payment-attempt-record)`stripeCorePaymentAttemptRecordId()``par_4sdDKj23235s`[Confirmation Tokens](https://docs.stripe.com/api/confirmation_tokens)`stripeCoreConfirmationTokenId()``ctoken_UDlKXzYnsCqEJvomcWWqCnTF`[Account Tokens](https://stripe.com/docs/api/tokens/create_account)`stripeCoreAccountTokenId()``ct_XPKqNZwOTjWJatx4A5zW2Myh`[Bank Account Tokens](https://stripe.com/docs/api/tokens/create_bank_account)`stripeCoreBankAccountTokenId()``btok_8RnxS6Y358qBuRRYS4el8LEo`[Card Tokens](https://stripe.com/docs/api/tokens/create_card)`stripeCoreTokenId()``tok_q1KiYddcC48Tqney3T8Vnkzu`[CVC Update Tokens](https://stripe.com/docs/api/tokens/create_cvc_update)`stripeCoreCvcUpdateTokenId()``cvctok_wWV1bniJ16gsBjJlIMrN8T87`[Person Tokens](https://stripe.com/docs/api/tokens/create_person)`stripeCorePersonTokenId()``cpt_MtqTlVzM2qmAIv0KhZJ0qV4g`[PII Tokens](https://stripe.com/docs/api/tokens/create_pii)`stripeCorePersonallyIdentifiableInformationTokenId()``pii_uCbQpWwZu3tJEUm18GiQsKAa`### Payment Methods

[](#payment-methods)

API ResourceMethodExample[Payment Methods](https://stripe.com/docs/api/payment_methods)`stripePaymentMethodId()``pm_jkztRiUi5yqTNqHJTzTAVolI`[Payment Method Configurations](https://stripe.com/docs/api/payment_method_configurations)`stripePaymentMethodConfigurationId()``pmc_BS6va641BwHZCexJscZ9LNH8`[Payment Method Domains](https://stripe.com/docs/api/payment_method_domains)`stripePaymentMethodDomainId()``pmd_FcObWHJ3gtwujiuUhVhWSe2c`[Bank Accounts](https://stripe.com/docs/api/customer_bank_accounts)`stripePaymentMethodBankAccountId()``ba_gkcmh6gu31nALx6PJDJckqPn`[Cash Balance Transactions](https://docs.stripe.com/api/cash_balance_transactions)`stripeCashBalanceTransactionId()``ccsbtxn_6sKoup9yicpuPC7MykObBsjq`[Cards](https://stripe.com/docs/api/cards)`stripePaymentMethodCardId()``card_A56nkfbrHtdQ7bv8I9eeQOtW`### Products

[](#products)

API ResourceMethodExample[Products](https://stripe.com/docs/api/products)`stripeProductId()``prod_Kp7fBKUx6qs3FC`[Prices](https://stripe.com/docs/api/prices)`stripeProductPriceId()``price_YhlhAgy0lHbLcOWwFZ596x1S`[Promotion Codes](https://stripe.com/docs/api/promotion_codes)`stripeProductPromotionCodeId()``promo_7ADzsJ6WuQIsKsIj4T4MTeIX`[Discounts](https://stripe.com/docs/api/discounts)`stripeProductDiscountId()``di_DleWj1FqYhsriqRSaQr6jCgs`[Tax Codes](https://stripe.com/docs/api/tax_codes)`stripeProductTaxCodeId()``txcd_90766505`[Tax Rates](https://stripe.com/docs/api/tax_rates)`stripeProductTaxRateId()``txr_nNePe3bTkOwlrAbsAxpXzWXy`[Shipping Rates](https://stripe.com/docs/api/shipping_rates)`stripeProductShippingRateId()``shr_Sg2ZpoUCsfdAujoCc8U8MDba`### Checkout

[](#checkout)

API ResourceMethodExample[Checkout Sessions](https://stripe.com/docs/api/checkout/sessions)`stripeCheckoutSessionId()``cs_A1caKuWyEPOrovEkpYJLfId5uOpWzynW8ZunRYnA0J9RsPzdM6YeBfDG03`### Payment Links

[](#payment-links)

API ResourceMethodExample[Payment Link](https://stripe.com/docs/api/payment_links/payment_links)`stripePaymentLinkId()``plink_L85n1vZMv4QS0aYwj11TKjTy`### Billing

[](#billing)

API ResourceMethodExample[Credit Note](https://stripe.com/docs/api/credit_notes)`stripeBillingCreditNoteId()``cn_37b9KW8lODWCDSilck1hs0on`[Credit Note Line Items](https://stripe.com/docs/api/credit_notes/line_item)`stripeBillingCreditNoteLineItemId()``il_75E91IzYCJaaSbESOZl5GQiF`[Credit Balance Transactions](https://stripe.com/docs/api/billing/credit-balance-transaction)`stripeBillingCreditBalanceTransactionId()``cbtxn_37b3DSyi5lc9uck2sp1hs0on`[Customer Portal Session](https://docs.stripe.com/api/customer_portal/sessions)`stripeBillingCustomerPortalId()``bps_HFXl8fnSxXjVUvepP0g7cfEH`[Customer Portal Configuration](https://stripe.com/docs/api/customer_portal/configuration)`stripeBillingCustomerPortalConfigurationId()``bpc_sfteIfmkKXSNTxL7nA5dNKVS`[Invoices](https://stripe.com/docs/api/invoices)`stripeBillingInvoiceId()``in_pBNUeaVUmJ8I44Fx1OajNLQn`[Invoice Items](https://stripe.com/docs/api/invoiceitems)`stripeBillingInvoiceItemId()``ii_gOWpZpoGoMOE5IYVS86mmGXS`[Invoice Line Item](https://docs.stripe.com/api/invoice-line_item)`stripeBillingInvoiceLineItemId()``il_tmp_lZHqliBZKLzgXuBajqYaAhxz`[Invoice Payment](https://docs.stripe.com/api/invoice-payment)`stripeBillingInvoicePaymentId()``inpay_uUOgHHV0V88gjsZz4kh1at5D`[Invoice Rendering Template](https://docs.stripe.com/api/invoice-rendering-template)`stripeBillingInvoiceRenderingTemplateId()``inrtem_lZHqlidX3uB6aFqtYeafAhxz`[Alerts](https://docs.stripe.com/api/billing/alert)`stripeBillingAlertId()``alrt_39061`[Meters](https://docs.stripe.com/api/billing/meter)`stripeBillingMeterId()``mtr_53464`[Meter Event Adjustment](https://docs.stripe.com/api/billing/meter-event-adjustment)`stripeBillingMeterAdjustmentId()``mtr_event_adj_68238901`[Meter Event Summary](https://docs.stripe.com/api/billing/meter-event_summary)`stripeBillingMeterEventSummaryId()``mtrusg_Be99DBj9c2jnNh5IxKt2bULP2Mb36xnO29OpHiVsfIeuyyI3OGvdtem4qLZ5e0O3ZB0cT93uhqpQZWJdNtYNmOERzX7AOan9OHu373TqGQoVYVBtzghvVp0oMclD2iZfnGYdeePNUvi5gKtsE36tuhev4h62i79IM8uWTdS0U77j4cz0DDOMZCcvX`[Credit Grants](https://stripe.com/docs/api/billing/credit-grant)`stripeBillingCreditGrantId()``credgr_37b9KW82CDhSi5lcuk1hs0on`[Credit Balance Transactions](https://docs.stripe.com/api/billing/credit-balance-transaction)`stripeBillingCustomerBalanceTransactionId()``cbtxn_SboO9vmMCUoTg6iGGdsOQ18R`[Plans](https://stripe.com/docs/api/plans)`stripeBillingPlanId()``price_9wWZ7dtmQSWvQDhFBJB49sv8`[Quote](https://stripe.com/docs/api/quotes)`stripeBillingQuoteId()``qt_qrx3tn3rnQ1USENFK1gJcXLv`[Subscriptions](https://stripe.com/docs/api/subscriptions)`stripeBillingSubscriptionId()``sub_wMwsJiaZpdRfrF7WXkP0ibmc`[Subscription Items](https://stripe.com/docs/api/subscription_items)`stripeBillingSubscriptionItemId()``si_3OdBLaD7p37H2A`[Subscription Schedules](https://stripe.com/docs/api/subscription_schedules)`stripeBillingSubscriptionScheduleId()``sub_sched_OnyC6GSR3kjse08ehVNsB5U0`[Tax IDs](https://stripe.com/docs/api/customer_tax_ids)`stripeBillingCustomerTaxIdId()``txi_Vs7BSOcldH5QIN35U8lSlJuc`[Test Clocks](https://stripe.com/docs/api/test_clocks)`stripeBillingTestClockId()``clock_6QR6dCPpUhhBg81wmyFF4VtJ`### Capital

[](#capital)

API ResourceMethodExample[FinancingOffers](https://docs.stripe.com/api/capital/financing_offers)`stripeFinancingOfferId()``financingoffer_Y15ngYE41jww8upx9J2PcFXxQWBjp`### Connect

[](#connect)

API ResourceMethodExample[Accounts](https://stripe.com/docs/api/accounts)`stripeConnectAccountId()``acct_l8cMrvSDcUT4qP2h`[Application Fees](https://stripe.com/docs/api/application_fees)`stripeConnectApplicationFeeId()``fee_ITNGc4r7B4QMjtOjsLr1GA2U`[Application Fee Refunds](https://stripe.com/docs/api/fee_refunds)`stripeConnectApplicationFeeRefundId()``fr_XxY71TOJinzdNkmEQUVtlUGk`[Capabilities](https://stripe.com/docs/api/capabilities)`stripeConnectCapabilityId()``acap_gettfmKTrHMdUQgppBj8BJ6F`[External Bank Accounts](https://stripe.com/docs/api/external_accounts)`stripeConnectExternalAccountId()``ba_j8048CaKvbk1ie7lfxyzXF19`[External Account Cards](https://docs.stripe.com/api/external_account_cards)`stripeExternalAccountCardId()``card_0TsW9JT5P8vkQ1eyWiCn4z0I`[Persons](https://stripe.com/docs/api/persons)`stripeConnectPersonId()``person_cNquFb7JU2nVsfIlprJHqIc1`[Top-ups](https://stripe.com/docs/api/topups)`stripeConnectTopUpId()``tu_kdxjWmOqbz9J5rMdnibcnr37`[Transfers](https://stripe.com/docs/api/transfers)`stripeConnectTransferId()``tr_1gClurOotKNBjvk7ktS3JHxo`[Transfer Reversals](https://stripe.com/docs/api/transfer_reversals)`stripeConnectTransferReversalId()``trr_LWr56oP4aoPIjVeXGOiFOJ6f`[Secrets](https://stripe.com/docs/api/secret_management)`stripeConnectSecretManagementId()``appsecret_QjQnyoan5rtIYdHSokfut7VD`### Fraud

[](#fraud)

API ResourceMethodExample[Early Fraud Warning](https://stripe.com/docs/api/radar/early_fraud_warnings)`stripeFraudEarlyFraudWarningId()``issfr_NDwczkwka50cAHRFVfnbQP30`[Reviews](https://stripe.com/docs/api/radar/reviews)`stripeFraudReviewId()``prv_Zlx9K6ixTcigHUnOdpxqCjOO`[Value Lists](https://stripe.com/docs/api/radar/value_lists)`stripeFraudValueListId()``rsl_C8PVL4lNS75t4PWEscJUXEkm`[Value List Items](https://stripe.com/docs/api/radar/value_list_items)`stripeFraudValueListItemId()``rsli_QQdPv6uWYm7nZUlX3g65TfGV`### Issuing

[](#issuing)

API ResourceMethodExample[Authorizations](https://stripe.com/docs/api/issuing/authorizations)`stripeIssuingAuthorizationId()``iauth_GyuotdxkKEHCNNYHohzBBuBh`[Cardholders](https://stripe.com/docs/api/issuing/cardholders)`stripeIssuingCardholderId()``ich_EyqQ6EcYkhzgyrGEQSCY68EB`[Cards](https://stripe.com/docs/api/issuing/cards)`stripeIssuingCardId()``ic_IsXAmEVzInXUPtq4uttDZ2g2`[Disputes](https://stripe.com/docs/api/issuing/disputes)`stripeIssuingDisputeId()``idp_lXR4WsU6fhdpErzWVNOr24Ux`[Personalization Designs](https://docs.stripe.com/api/issuing/personalization_designs)`stripeIssuingPersonalizationDesignsId()``ipcd_ulVGQxe21jR4vx`[Physical Bundles](https://docs.stripe.com/api/issuing/physical_bundles)`stripeIssuingPhysicalBundlesId()``ics_Kd7CQOUvHjJelX`[Tokens](https://stripe.com/docs/api/issuing/tokens)`stripeIssuingTokenId()``intok_HMkTW4FnWckzqqNGGFJP4I7E`[Transactions](https://stripe.com/docs/api/issuing/transactions)`stripeIssuingTransactionId()``ipi_FqGAHy3JUvUsjWdqyaViRFm2`### Terminal

[](#terminal)

API ResourceMethodExample[Location](https://stripe.com/docs/api/terminal/locations)`stripeTerminalLocationId()``tml_UntmyAU2XPdrxOznzLeRFOue`[Reader](https://stripe.com/docs/api/terminal/readers)`stripeTerminalReaderId()``tmr_2j8WBisfMEwMBNtLJEJ7uLOe`[Terminal Hardware Order](https://stripe.com/docs/api/terminal/hardware_orders)`stripeTerminalHardwareOrderId()``thor_BgOkryA2RaqfMCzMomo4VDQ5`[Terminal Hardware Product](https://stripe.com/docs/api/terminal/hardware_products)`stripeTerminalHardwareProductId()``thpr_GgSNDKrG2YURmV`[Terminal Hardware SKU](https://stripe.com/docs/api/terminal/hardware_skus)`stripeTerminalHardwareSkuId()``thsku_46eIJkxj8F6Dfb`[Terminal Hardware Shipping Method](https://stripe.com/docs/api/terminal/hardware_shipping_methods)`stripeTerminalHardwareShippingMethodId()``thsm_HJclEgx3fzfYd5`[Configuration](https://stripe.com/docs/api/terminal/configuration)`stripeTerminalConfigurationId()``tmc_L7yWqYiNsihDrn`### Treasury

[](#treasury)

API ResourceMethodExample[FinancialAccounts](https://stripe.com/docs/api/treasury/financial_accounts)`stripeTreasuryFinancialAccountId()``fa_SHiUjM3c13bPdvV81YlFYwQu`[Transactions](https://stripe.com/docs/api/treasury/transactions)`stripeTreasuryTransactionId()``trxn_VCKBAZWMzRUul2KHkWZjHGRt`[TransactionEntries](https://stripe.com/docs/api/treasury/transaction_entries)`stripeTreasuryTransactionEntryId()``trxne_xe1YTcpq1tmWUgzNABC8kT1S`[OutboundTransfers](https://stripe.com/docs/api/treasury/outbound_transfers)`stripeTreasuryOutboundTransferId()``obt_9f5fWmY0s8Rbbfi8AoeifoRC`[OutboundPayments](https://stripe.com/docs/api/treasury/outbound_payments)`stripeTreasuryOutboundPaymentId()``obp_QOJPdQ7lbAybgALjh67lgbsA`[InboundTransfers](https://stripe.com/docs/api/treasury/inbound_transfers)`stripeTreasuryInboundTransferId()``ibt_JE9DIuWCZ9bY9xGPeKYPkSI5`[ReceivedCredits](https://stripe.com/docs/api/treasury/received_credits)`stripeTreasuryReceivedCreditId()``rc_46y23bSUUCoMmsdv7Zvx0zYr`[ReceivedDebits](https://stripe.com/docs/api/treasury/received_debits)`stripeTreasuryReceivedDebitId()``rd_ylnZC0HqdHBWWouwFsQhE4GU`[CreditReversals](https://stripe.com/docs/api/treasury/credit_reversals)`stripeTreasuryCreditReversalId()``credrev_awpfYT4hppBEmsz9KPgtOYDm`[DebitReversals](https://stripe.com/docs/api/treasury/debit_reversals)`stripeTreasuryDebitReversalId()``debrev_ykpt4Mi6yZAPrm8upq3yKI5r`### Entitlements

[](#entitlements)

API ResourceMethodExample[Feature](https://docs.stripe.com/api/entitlements/feature)`stripeEntitlementFeatureId()``feat_YZF6aSsx1eTNhEYrsMw6xdUeZ6lESQjt`[Product Feature](https://docs.stripe.com/api/product-feature)`stripeEntitlementProductFeatureId()``prodft_8qi4lJKVjxGy8u`[Active Entitlement](https://docs.stripe.com/api/entitlements/active-entitlement)`stripeEntitlementActiveEntitlementId()``ent_avB0r4MuPxc66IVgc2EF4lK50OznONZu`### Sigma

[](#sigma)

API ResourceMethodExample[Scheduled Queries](https://stripe.com/docs/api/sigma/scheduled_queries)`stripeSigmaScheduledQueryRunId()``sqr_89Lp2zqyTtqJXSFuPn9zHIcZ`[Query Run](https://docs.stripe.com/api/sigma/sigma-query-run)`stripeSigmaQueryId()``qry_dwqXjY61dhXHyp0NGLbrhymx`### Reporting

[](#reporting)

API ResourceMethodExample[Report Runs](https://stripe.com/docs/api/reporting/report_type)`stripeReportingReportRunId()``frr_jJ9LNixW3dEQco0XTeX2zE1R`### Financial Connections

[](#financial-connections)

API ResourceMethodExample[Accounts](https://stripe.com/docs/api/financial_connections/accounts)`stripeFinancialConnectionAccountId()``fca_z3JzQ1OCkYved5uWOqh3b387`[Account Owner](https://stripe.com/docs/api/financial_connections/ownership)`stripeFinancialConnectionAccountOwnershipId()``fcaowns_XwyWHMQFo9koh9U1TuOMW43D`[Sessions](https://stripe.com/docs/api/financial_connections/session)`stripeFinancialConnectionSessionId()``fcsess_ZnomHexUQ68qiad2GWqQsvsa`[Transactions](https://stripe.com/docs/api/financial_connections/transaction)`stripeFinancialConnectionTransactionId()``fctxn_yIcXfBzg3NSJRYHqIW5spz4v`[Transaction Refresh](https://stripe.com/docs/api/financial_connections/transaction)`stripeFinancialConnectionTransactionRefreshId()``fctxnref_qjmwOP8D8hJlSBgSKqHsY0Bi`### Tax

[](#tax)

API ResourceMethodExample[Tax Calculations](https://stripe.com/docs/api/tax/calculations)`stripeTaxCalculationId()``taxcalc_3tXT5aZ0nMqhD0sFe8VtY8tR`[Tax Registrations](https://docs.stripe.com/api/tax/registrations)`stripeTaxRegistrationId()``taxreg_ZEKy4vPjjv9yab`[Tax Transactions](https://stripe.com/docs/api/tax/transactions)`stripeTaxTransactionId()``tax_nnTCZZscXpM9xaJyyncMJOck`[Transaction Line Items](https://stripe.com/docs/api/tax/transactions/line_items)`stripeTaxTransactionLineItemId()``tax_li_NSTCDtCYyvp5dT`### Identity

[](#identity)

API ResourceMethodExample[Verification Session](https://stripe.com/docs/api/identity/verification_sessions)`stripeIdentityVerificationSessionId()``vs_j8AvYT7Tbmjz26tASmjdcyNt`[Verification Report](https://stripe.com/docs/api/identity/verification_reports)`stripeIdentityVerificationReportId()``vr_IwuD3wV5qfD4t4fbTOzWwUm6`### Crypto

[](#crypto)

API ResourceMethodExample[Crypto Onramp Sessions](https://stripe.com/docs/api/crypto/onramp_sessions)`stripeCryptoOnrampSessionId()``cos_wlo5PYZC2j8lFHnMaxbuFBK8`[Crypto Onramp Sessions](https://stripe.com/docs/api/crypto/onramp_sessions)`stripeCryptoOnrampSessionClientSecret()``cos_Wjo3OVUVusWY54RHF6oCM0Jm_secret_Bm9iRlLbb82K19mwOxQE9jVdA0U8rMEmKO6`### Climate

[](#climate)

API ResourceMethodExample[Climate Order](https://docs.stripe.com/api/climate/order)`stripeClimateOrderId()``climorder_zPgRtPy8onKSuWtEHoNZidD9`[Climate Product](https://docs.stripe.com/api/climate/product)`stripeClimateProductId()``climsku_zhSJ6n8xrB3iLS4yHNVxzpBq`[Climate Supplier](https://docs.stripe.com/api/climate/supplier)`stripeClimateSupplierId()``climsup_YKxeDsj2hhmR2cqmangtVy02`### Forwarding

[](#forwarding)

API ResourceMethodExample[Forwarding Request](https://docs.stripe.com/api/forwarding/request)`stripeForwardingRequestId()``fwd_req_90746`### Privacy

[](#privacy)

API ResourceMethodExample[Redaction Job](https://docs.stripe.com/api/privacy/redaction-job)`stripePrivacyRedactionJobId()``prj_167`[Redaction Job Validation Error](https://docs.stripe.com/api/privacy/redaction-job-validation-error)`stripePrivacyRedactionJobValidationErrorId()``prjve_166`### Webhooks

[](#webhooks)

API ResourceMethodExample[Webhook Endpoints](https://stripe.com/docs/api/webhook_endpoints)`stripeWebhookEndpointId()``we_irKQp8JwXgUxXFefCM6zlx1R`[Webhook Application](https://stripe.com/docs/api/webhook_endpoints)`stripeWebhookApplicationId()``ca_Y5nYE1wwup9JPcXxQ9JaJWBRAJiFMujp`### Legacy resources

[](#legacy-resources)

Stripe still documents some older APIs that are not recommended for new integrations. This package may still generate IDs for tests against existing data.

API ResourceMethodNotes[Sources](https://stripe.com/docs/api/sources)`stripeBillingSourceId()`Legacy payment source API; prefer [Payment Methods](https://stripe.com/docs/api/payment_methods).Resources such as [Account Link](https://stripe.com/docs/api/account_links) and [Customer Session](https://docs.stripe.com/api/customer_sessions) do not expose a persistent `id` in the API (only URLs or `client_secret`), so they are not included as ID generators here.

📚 Usage / Examples
------------------

[](#-usage--examples)

### Pest

[](#pest)

```
it('generates a well structured stripe account id', function () {
   fake()->addProvider(new Stripe(fake()));

   expect(fake()->stripeConnectAccountId())->toStartWith('acct_')->toHaveLength(21)->toBeString();
});
```

### PHPUnit

[](#phpunit)

```
public function testGeneratesWellStructuredStripeAccountId()
{
    $faker = Factory::create();
    $faker->addProvider(new Stripe($faker));

    $this->assertStringStartsWith('acct_', $faker->stripeConnectAccountId());
}
```

### Laravel Factories

[](#laravel-factories)

```
use WithFaker;

public function definition(): array
{
    $this->faker->addProvider(new Stripe($this->faker));

    return [
        'id' => $this->faker->stripeConnectAccountId(),
        'name' => 'John Doe',
        'email' => 'john.doe@testing.co.uk'
    ];
}
```

###  Health Score

56

—

FairBetter than 97% of packages

Maintenance81

Actively maintained with recent releases

Popularity45

Moderate usage in the ecosystem

Community11

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 98.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~65 days

Recently: every ~144 days

Total

17

Last Release

100d ago

Major Versions

1.0.0 → 2.0.02023-05-17

v2.7.0 → v3.0.02023-10-20

v3.2.0 → v4.0.02024-08-26

v4.1.0 → v5.x-dev2025-07-06

PHP version history (3 changes)1.0.0PHP ^8.1

v4.0.0PHP ^8.2

v5.x-devPHP ^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7534029?v=4)[jp](/maintainers/JonPurvis)[@JonPurvis](https://github.com/JonPurvis)

---

Top Contributors

[![JonPurvis](https://avatars.githubusercontent.com/u/7534029?v=4)](https://github.com/JonPurvis "JonPurvis (65 commits)")[![kengeneering](https://avatars.githubusercontent.com/u/195945036?v=4)](https://github.com/kengeneering "kengeneering (1 commits)")

---

Tags

fakerphplaravelpestphpphp8phpunitunit-testingstripefaker

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/jonpurvis-faker-stripe/health.svg)

```
[![Health](https://phpackages.com/badges/jonpurvis-faker-stripe/health.svg)](https://phpackages.com/packages/jonpurvis-faker-stripe)
```

###  Alternatives

[nelmio/alice

Expressive fixtures generator

2.5k45.2M166](/packages/nelmio-alice)[zenstruck/foundry

A model factory library for creating expressive, auto-completable, on-demand dev/test fixtures with Symfony and Doctrine.

79613.7M150](/packages/zenstruck-foundry)[league/factory-muffin-faker

The goal of this package is to wrap faker to make it super easy to use with factory muffin.

4412.3M28](/packages/league-factory-muffin-faker)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
