Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/limedeck/nova-cashier-overview
Interact with your Stripe subscriptions directly inside Nova.
https://github.com/limedeck/nova-cashier-overview
cashier laravel nova novapackage stripe
Last synced: 29 days ago
JSON representation
Interact with your Stripe subscriptions directly inside Nova.
- Host: GitHub
- URL: https://github.com/limedeck/nova-cashier-overview
- Owner: LimeDeck
- License: mit
- Created: 2019-11-23T01:42:07.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-06-12T19:57:46.000Z (over 1 year ago)
- Last Synced: 2024-12-08T05:36:43.945Z (about 1 month ago)
- Topics: cashier, laravel, nova, novapackage, stripe
- Language: Vue
- Homepage:
- Size: 476 KB
- Stars: 28
- Watchers: 2
- Forks: 18
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# A Laravel Nova resource tool to manage your Cashier (Stripe) subscriptions
[![Latest Version on Packagist](https://img.shields.io/packagist/v/limedeck/nova-cashier-overview.svg?style=flat-square)](https://packagist.org/packages/limedeck/nova-cashier-overview)
[![CircleCI](https://travis-ci.org/LimeDeck/nova-cashier-overview.svg?branch=master)](https://travis-ci.org/LimeDeck/nova-cashier-overview)
[![StyleCI](https://github.styleci.io/repos/223514784/shield?branch=master)](https://github.styleci.io/repos/223514784)
[![Total Downloads](https://img.shields.io/packagist/dt/limedeck/nova-cashier-overview.svg?style=flat-square)](https://packagist.org/packages/limedeck/nova-cashier-overview)This [Nova](https://nova.laravel.com) tool lets you:
- view a database subscription (subscription name is a parameter)
- view Stripe subscription details
- 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
![screenshot of the initial Cashier overview tool](https://raw.githubusercontent.com/LimeDeck/nova-cashier-overview/master/screenshots/initial.png)
### Expanded view of the subscription
![screenshot of the expanded Cashier overview tool](https://raw.githubusercontent.com/LimeDeck/nova-cashier-overview/master/screenshots/expanded.png)
## Disclaimer
This package has been heavily inspired by [themsaid/nova-cashier-manager](https://github.com/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](https://github.com/spatie/skeleton-nova-tool).
## Installation
You can install the nova tool in to a Laravel app that uses [Nova](https://nova.laravel.com) via composer:
```bash
composer require limedeck/nova-cashier-overview
```Next up, you use the resource tool with Nova. This is typically done in the `fields` method of the desired Nova Resource.
```php
use LimeDeck\NovaCashierOverview\Subscription;// ...
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
``` bash
composer test
```## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
### Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.