stripe-php
CLAUDE.md4k starsChanged 9 months agoMITView on GitHub
It's ok not to put comments on/in a function if their addition wouldn't meaningfully clarify anything.
Trending
More talk lately.about the whole repository
Who's talking about stripe/stripe-php
- laravel/cashier-stripe“Deprecations regarding `curl_close` in Stripe PHP for PHP 8.5”GitHub · Dec 24, 2025 · 23 reactions
- craftcms/commerce-stripe“PHP 7.4 compatibility with Stripe 7.0.0”GitHub · Dec 18, 2019 · 7 reactions
- laravel/cashier-stripe“Use TaxRates instead of tax_percent”GitHub · Apr 25, 2019 · 5 reactions
- meilisearch/meilisearch-php“How do you install MeiliSearch without composer ”GitHub · Oct 14, 2020 · 3 reactions
- laravel/cashier-stripe“Support for Stripe PHP v12”GitHub · Aug 19, 2023 · 2 reactions
The biggest 5 of 28 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 28
Talked about on GitHub (28 times).
On GitHub · 28
- Dec 24, 2025Deprecations regarding `curl_close` in Stripe PHP for PHP 8.5 — laravel/cashier-stripe23 reactions
- Dec 18, 2019PHP 7.4 compatibility with Stripe 7.0.0 — craftcms/commerce-stripe7 reactions · 22 comments
- Apr 25, 2019Use TaxRates instead of tax_percent — laravel/cashier-stripe5 reactions · 13 comments
- Oct 14, 2020How do you install MeiliSearch without composer — meilisearch/meilisearch-php3 reactions · 12 comments
- Aug 19, 2023Support for Stripe PHP v12 — laravel/cashier-stripe2 reactions · 8 comments
23 more on GitHub
- Jun 16, 2026Errors are turned into exceptions, with no way to gate/filter them — laravel/framework1 reaction
- Feb 1, 2026Bump stripe/stripe-php from 19.1.0 to 19.3.0 — bastelix/edocs-cloud1 reaction · 1 comment
- Dec 19, 2025POC - Hack Week - Stripe SDK Integration — woocommerce/woocommerce-gateway-stripe1 reaction · 1 comment
- Dec 10, 2024[Feature in SDK]: add support for PSR-17, PSR-18 and httplug support — bitrix24/b24phpsdk1 reaction · 1 comment
- Aug 19, 2023Allow Stripe php 12 — spatie/laravel-stripe-webhooks1 reaction · 1 comment
- Apr 3, 2023`Cashier\Invoice::isDeleted()` method not working, Undefined constant `STATUS_DELETED`. — laravel/cashier-stripe1 reaction · 3 comments
- Feb 21, 2023[14.x] Fix invoice line items — laravel/cashier-stripe1 reaction
- Sep 3, 2019Update to v7 of Stripe SDK — laravel/cashier-stripe1 reaction · 1 comment
- Aug 25, 2019Older PHP stripe library being used — wpmudev/pro-sites1 reaction · 1 comment
- Oct 5, 2026Bump stripe/stripe-php from 17.2.0 to 22.0.0 — Inseong-Hwang-dev/divinewines0 reactions
- Oct 5, 2026Bump stripe/stripe-php from 21.3.2 to 22.0.0 — xjanova/xmanstudio0 reactions · 1 comment
- Oct 5, 2026Release : v22.0.0 — cegepmatane/projet-specialise-candicepascale0 reactions
- Oct 5, 2026chore(deps): bump stripe/stripe-php from 21.3.1 to 22.0.0 — Statsio/statsio-api0 reactions · 1 comment
- Oct 5, 2026chore(deps): bump stripe/stripe-php from 21.3.2 to 22.0.0 — SmelterWorks/SmelterWorks-Web0 reactions
- Oct 5, 2026chore(deps): update stripe/stripe-php requirement from ^21.1 to ^22.0 — senlifetahiriniaina/life-mdg-erp0 reactions · 1 comment
- Oct 5, 2026Bump stripe/stripe-php from 16.6.0 to 22.0.0 — bl33der/insta-wipe0 reactions
- Oct 5, 2026chore(deps): update stripe/stripe-php requirement from ^21.3 to ^22.0 — gnarhard/stripe-storefront0 reactions · 1 comment
- Oct 5, 2026Bump stripe/stripe-php from 19.3.0 to 22.0.0 in /backend — marko00djokic/IzdajIznajmiV20 reactions · 1 comment
- Oct 5, 2026Bump stripe/stripe-php from 21.3.1 to 22.0.0 — vufind-org/vufind0 reactions
- Oct 4, 2026Bump stripe/stripe-php from 21.3.2 to 22.0.0 — galette-plugins/plugin-stripe0 reactions
- Oct 4, 2026build(deps): bump stripe/stripe-php from 21.3.2 to 22.0.0 — ilzarpeatore/Bckbs0 reactions
- Sep 19, 2026Update stripe/stripe-php requirement from v19.3.0 to v21.3.2 — Spanu18/laravel-pay0 reactions · 1 comment
- Sep 14, 2026Bump stripe/stripe-php from 21.3.1 to 21.3.2 — nicolasleborgne/focusyn0 reactions · 1 comment
The file
We split this CLAUDE.md into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 5
Run all tests: just test
- Very specific: line 6
Run specific test: just test --filter testMethodName
- Very specific: line 7
Run specific test file: just test tests/Stripe/SomeTest.php
- Distinctive: line 27
If something in a generated file/range needs to be updated, add a summary of the change to your report but don't attempt to edit it …
- Very specific: line 37
All code must run on all supported PHP versions (full list in the test section of @.github/workflows/ci.yml)
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
stripe-php
Testing
- Run all tests:
just test - Run specific test:
just test --filter testMethodName - Run specific test file:
just test tests/Stripe/SomeTest.php - Tests use PHPUnit
Formatting & Linting
- Format:
just format(uses php-cs-fixer) - Lint/static analysis:
just lint(uses PHPStan)
Key Locations
- HTTP client interface:
lib/HttpClient/ClientInterface.php - cURL HTTP implementation:
lib/HttpClient/CurlClient.php - Streaming client interface:
lib/HttpClient/StreamingClientInterface.php - Base client (request building, auth):
lib/BaseStripeClient.php - Main client class:
lib/StripeClient.php - Version/config:
lib/Stripe.php
Generated Code
- Files containing
File generated from our OpenAPI specat the top are generated; do not edit. Similarly, any code block starting withThe beginning of the section generated from our OpenAPI specis generated and should not be edited directly.- If something in a generated file/range needs to be updated, add a summary of the change to your report but don't attempt to edit it directly.
- Resource classes under
lib/(e.g.lib/Customer.php,lib/Service/) are largely generated. - The
HttpClient/directory andBaseStripeClient.phpare NOT generated.
Conventions
- Uses PHP cURL extension for HTTP
- Composer for dependency management
- Vendored executables in
vendor/bin/ - Work is not complete until
just testandjust lintcomplete successfully. - All code must run on all supported PHP versions (full list in the test section of @.github/workflows/ci.yml)
Comments
- Comments MUST only be used to:
- Document a function
- Explain the WHY of a piece of code
- Explain a particularly complicated piece of code
- Comments NEVER should be used to:
- Say what used to be there. That's no longer relevant!
- Explain the WHAT of a piece of code (unless it's very non-obvious)
It's ok not to put comments on/in a function if their addition wouldn't meaningfully clarify anything.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

