Official PHP library for interacting with the Stripe API, providing dynamic classes for API resources.
Stripe PHP is the official PHP SDK for integrating with Stripe's payment processing and financial services API. It provides a robust, type-safe interface for managing payments, subscriptions, customers, and other Stripe resources, making it essential for building e-commerce and SaaS platforms in PHP. The library dynamically initializes classes from API responses to ensure compatibility across Stripe API versions.
PHP developers building e-commerce platforms, SaaS applications, or any service requiring payment processing, subscription management, or financial operations via Stripe. It is also suited for plugin developers creating integrations that embed Stripe functionality.
Developers choose Stripe PHP because it is the officially maintained SDK, guaranteeing reliability, up-to-date API coverage, and seamless integration with Stripe's evolving features. Its modern client/service pattern, extensive configurability (like custom timeouts, automatic retries, and per-request authentication), and support for preview features provide a superior developer experience over community-built alternatives.
PHP library for the Stripe API.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
As Stripe's official PHP SDK, it guarantees compatibility with the latest API versions and receives regular updates, evidenced by continuous integration badges and a clear version support policy in the README.
The client/service pattern introduced in version 7.33.0 provides a clean, object-oriented interface for API interactions, improving code maintainability over legacy patterns, as detailed in the migration guide.
Supports custom timeouts, cURL options, CA bundles, automatic retries with idempotency keys, and telemetry control, allowing fine-grained tuning of API requests for performance and debugging.
Enables integration with Stripe's beta and alpha features through -beta.X and -alpha.X SDK versions, keeping applications at the cutting edge, as described in the public and private preview sections.
Requires PHP 7.2+ and actively drops support for older versions in major updates, forcing upgrades that may not be feasible for legacy projects, as warned in the language version support policy.
Deep integration with Stripe's API means switching to another payment provider would require significant code changes, limiting flexibility and creating dependency on Stripe's ecosystem.
Configuring custom cURL options for proxies or SSL/TLS issues involves manual intervention and can be error-prone, as highlighted in the SSL/TLS compatibility section where users must tweak CurlClient settings.