avoutic / web-framework-stripe
The Stripe module for web-framework
dev-main
2025-03-29 15:57 UTC
Requires
- avoutic/web-framework: ^8
- guzzlehttp/guzzle: ^7.9
- stripe/stripe-php: ^7.128
Requires (Dev)
- phpstan/phpstan: ^2.0
This package is auto-updated.
Last update: 2025-03-29 17:30:37 UTC
README
This module provides Stripe integration for WebFramework, offering a clean interface to interact with Stripe's API for handling payments, subscriptions, and webhooks.
Features
- Stripe customer management
- Product and price creation
- Subscription handling
- Webhook verification
- Invoice retrieval
- Production and development environment support
Requirements
- PHP 8.2 or higher
- WebFramework 8.x
- Stripe PHP SDK 7.128 or higher
Installation
Install via Composer:
composer require avoutic/web-framework-stripe
Configuration
If you are using the definition from definitions/defitinions.php. You can just add the following stripe.php to your auth config directory (config/auth):
<?php return [ 'api_key' => 'your_stripe_secret_key', 'publishable_api_key' => 'your_publishable_api_key', 'endpoint_secret' => 'your_webhook_endpoint_secret' ]
License
This module is open-sourced software licensed under the MIT license.