tomedio/stripe-symfony
Composer 安装命令:
composer require tomedio/stripe-symfony
包简介
Stripe integration for Symfony applications with Doctrine and API Platform
README 文档
README
A Symfony bundle for seamless integration of Stripe payments into your Symfony applications with Doctrine ORM and API Platform support.
Features
- Symfony Integration: Seamlessly integrates with Symfony, Doctrine ORM, and API Platform
- Customer Management: Easily manage customers with billing address support
- Subscription Handling: Complete subscription lifecycle with trial period support
- Invoice Tracking: Track and manage invoices with automatic status updates
- Webhook Processing: Built-in webhook handling with Symfony events
- Pay-per-action Support: Implement usage-based billing for your API
- Prepaid Credits System: Allow users to purchase and use credits
- Secure Checkout: Process payments securely via Stripe Checkout
Quick Installation
1. Configure Symfony Flex (Optional)
This bundle provides custom Symfony Flex recipes to simplify the installation process. To use them, add the following to your application's composer.json file:
{
"extra": {
"symfony": {
"endpoint": [
"https://raw.githubusercontent.com/tomedio/flex-recipes/main/index.json",
"flex://defaults"
]
}
}
}
2. Install via Composer
composer require tomedio/stripe-symfony
3. Register the bundle
// config/bundles.php return [ // ... Tomedio\StripeBundle\StripeBundle::class => ['all' => true], ];
4. Add environment variables
The bundle will automatically create the necessary configuration files during installation. You just need to add the required environment variables to your .env file:
# .env
STRIPE_API_KEY=sk_test_...
STRIPE_WEBHOOK_SECRET=whsec_...
STRIPE_SUCCESS_URL=https://your-domain.com/payment/success
STRIPE_CANCEL_URL=https://your-domain.com/payment/cancel
Documentation
For detailed implementation guides, interface references, and examples, please visit our comprehensive documentation:
https://tomedio.github.io/stripe-symfony/
The documentation includes:
- Complete installation and configuration instructions
- Interface implementation examples
- Subscription plan management
- Webhook handling
- API Platform integration
- Pay-per-action implementation
- Credit system setup
- And much more!
License
This bundle is released under the MIT License.
tomedio/stripe-symfony 适用场景与选型建议
tomedio/stripe-symfony 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 26 次下载、GitHub Stars 达 1, 最近一次更新时间为 2025 年 03 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「symfony」 「payment」 「doctrine」 「subscription」 「stripe」 「api-platform」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 tomedio/stripe-symfony 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 tomedio/stripe-symfony 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 tomedio/stripe-symfony 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
The bundle for easy using json-rpc api on your project
Make pimcore migration simple
Bundle Symfony DaplosBundle
Plugins for Tactician commands using Doctrine, like wrapping every command in a transaction
Use FileMaker through CWP as your backend database
Data migration mechanism for php using dbal do doctrine with pdo, schema and queryBuilder
统计信息
- 总下载量: 26
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 14
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-03-10