bavyhappy/nova-cashier-overview-plan-details
Composer 安装命令:
composer require bavyhappy/nova-cashier-overview-plan-details
包简介
Interact with your Stripe subscriptions directly inside Nova.
README 文档
README
This Nova tool lets you:
- view a database plan (plan name is a parameter)
- view a database product (product name is a parameter)
- view a database subscription (subscription name is a parameter)
- view Stripe subscription details and plans name
- view invoices for a given subscription with a downloadable link
- change a subscription plan
- cancel a subscription
- resume a subscription
- avoid unnecessary Stripe API call when you load a resource to quickly get a status information and dive deeper if you need it
Default view of the subscription
Expanded view of the subscription
Disclaimer
This package has been heavily inspired by themsaid/nova-cashier-manager and was created to be in sync with latest changes in Cashier as well as to optimize default loads by avoiding a Stripe API request unless it's needed. Structure of this repository was inspired by spatie/skeleton-nova-tool.
Installation
You can install the nova tool in to a Laravel app that uses Nova via composer:
composer require bavyhappy/nova-cashier-overview-plan-details
Next up, you use the resource tool with Nova. This is typically done in the fields method of the desired Nova Resource.
Database Migrations
In this packages the service provider registers its own database migration directory, so remember to migrate your database after installing the package.
php artisan migrate
If you need to overwrite the migrations that ship with Cashier, you can publish them using the vendor:publish Artisan command:
php artisan vendor:publish --tag="cashier-overview-details-migrations"
Usage
use Bavyhappy\NovaCashierOverviewPlanDetail; // ... public function fields(Request $request) { return [ ID::make()->sortable(), ... Subscription::make(), // if you want to display a specific subscription or multiple Subscription::make('a-fancy-subscription-name'), ... ]; }
Testing
composer test
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email info@davidecavallini.com instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.
bavyhappy/nova-cashier-overview-plan-details 适用场景与选型建议
bavyhappy/nova-cashier-overview-plan-details 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 16 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 03 月 29 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「nova」 「stripe」 「laravel」 「cashier」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 bavyhappy/nova-cashier-overview-plan-details 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 bavyhappy/nova-cashier-overview-plan-details 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 bavyhappy/nova-cashier-overview-plan-details 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Laravel Nova card that shows you your system information.
A Laravel Nova card.
A Laravel Nova package for publishable fields
A Laravel Nova package for translatable fields
Flexible payment integration for Laravel, lunarphp, supporting multiple payment providers.
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 15
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-03-29

