PHPackages                             yaroslawww/laravel-cashier-tools - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. yaroslawww/laravel-cashier-tools

Abandoned → [think.studio/laravel-cashier-tools](/?search=think.studio%2Flaravel-cashier-tools)Library[Payment Processing](/categories/payments)

yaroslawww/laravel-cashier-tools
================================

Set of utils what not added to main laravel cashier stripe package.

2.2.1(2y ago)146MITPHPPHP ^8.1

Since Nov 30Pushed 2y ago1 watchersCompare

[ Source](https://github.com/dev-think-one/laravel-cashier-tools)[ Packagist](https://packagist.org/packages/yaroslawww/laravel-cashier-tools)[ Docs](https://github.com/dev-think-one/laravel-cashier-tools)[ RSS](/packages/yaroslawww-laravel-cashier-tools/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (6)Versions (6)Used By (0)

Set of utils what not added to main laravel cashier stripe package
==================================================================

[](#set-of-utils-what-not-added-to-main-laravel-cashier-stripe-package)

[![Packagist License](https://camo.githubusercontent.com/a49b9ee9393bc170a0f58cf19f1be037fe7f6352bfd344c2224235c6c7803629/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7468696e6b2e73747564696f2f6c61726176656c2d636173686965722d746f6f6c733f636f6c6f723d253233346463373166)](https://camo.githubusercontent.com/a49b9ee9393bc170a0f58cf19f1be037fe7f6352bfd344c2224235c6c7803629/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7468696e6b2e73747564696f2f6c61726176656c2d636173686965722d746f6f6c733f636f6c6f723d253233346463373166)[![Packagist Version](https://camo.githubusercontent.com/85c6b51337db0e188cf3ebf9d6dfb833b84cf68344ee6e69c06dffa437aebfc9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7468696e6b2e73747564696f2f6c61726176656c2d636173686965722d746f6f6c73)](https://packagist.org/packages/think.studio/laravel-cashier-tools)[![Total Downloads](https://camo.githubusercontent.com/45c7fb2550f77d99699965dc5becd829f4cb2582785040834c0d5b1a0d8627d2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7468696e6b2e73747564696f2f6c61726176656c2d636173686965722d746f6f6c73)](https://packagist.org/packages/think.studio/laravel-cashier-tools)[![Build Status](https://camo.githubusercontent.com/c703d417ac7f9a957f6ae3d6cf98d60e64421a0be615f5533023cc493df525cf/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6465762d7468696e6b2d6f6e652f6c61726176656c2d636173686965722d746f6f6c732f6261646765732f6275696c642e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/dev-think-one/laravel-cashier-tools/build-status/main)[![Code Coverage](https://camo.githubusercontent.com/9e5aa691d4b68f965420a1c0d4001a698b5d96d7e28f6da4b446a53f27ea8fbc/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6465762d7468696e6b2d6f6e652f6c61726176656c2d636173686965722d746f6f6c732f6261646765732f636f7665726167652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/dev-think-one/laravel-cashier-tools/?branch=main)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/ec57e415b991bd730f43cac1c66f9ecbbd2399b8bdad906fcd9e593c2b1591ff/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6465762d7468696e6b2d6f6e652f6c61726176656c2d636173686965722d746f6f6c732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/dev-think-one/laravel-cashier-tools/?branch=main)

Installation
------------

[](#installation)

Install the package via composer:

```
composer require think.studio/laravel-cashier-tools
```

Usage
-----

[](#usage)

### Create promotion codes command

[](#create-promotion-codes-command)

```
php artisan cashier-tools:api:create:promotion-codes COUPON_ID_2021 -P "2021$" >> codes.txt
php artisan cashier-tools:api:create:promotion-codes COUPON_ID_2021 -S 20 -C 100 --p_max_redemptions=10 --stripe-secret=sk_live_4FL... >> codes.txt
```

### Use helper for checkout redirect url

[](#use-helper-for-checkout-redirect-url)

Builder to support redirect url params: (Like '{CHECKOUT\_SESSION\_ID}')

```
$url = route('cpd.account.index');

$subscription->allowPromotionCodes()
             ->checkout([
                 'success_url' => StripeCheckoutUrlBuilder::prepareSuccessUrl($url),
                 'cancel_url'  => StripeCheckoutUrlBuilder::prepareCancelUrl($url),
             ]);

$subscription->checkout([
    'success_url' => StripeCheckoutUrlBuilder::make($url)
                                             ->withSessionId()
                                             ->useResultStatus('foo')
                                             ->url(),
    'cancel_url'  => StripeCheckoutUrlBuilder::make($url)
                                             ->useResultStatus('bar')
                                             ->url(),
]);
```

### Use dashboard router

[](#use-dashboard-router)

```
DashboardRouter::fromConfig()->productsUrl()
DashboardRouter::fromConfig()->productsUrl($stripeProduct->id)
(new DashboardRouter(true))->promotionCodesUrl($promotionCode->id)
```

Credits
-------

[](#credits)

- [![Think Studio](https://camo.githubusercontent.com/8e541bece07d503c85a126b5294865faa00e27371048772f566a0cce8c01fd3a/68747470733a2f2f7961726f736c617777772e6769746875622e696f2f696d616765732f73706f6e736f72732f7061636b616765732f6c6f676f2d7468696e6b2d73747564696f2e706e67)](https://think.studio/)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~164 days

Total

5

Last Release

965d ago

Major Versions

1.0.0 → 2.0.02022-08-30

PHP version history (2 changes)1.0.0PHP ^8.0

2.0.0PHP ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/23663794?v=4)[yaroslawww](/maintainers/yaroslawww)[@yaroslawww](https://github.com/yaroslawww)

---

Top Contributors

[![yaroslawww](https://avatars.githubusercontent.com/u/23663794?v=4)](https://github.com/yaroslawww "yaroslawww (7 commits)")

---

Tags

laravelutilscashier

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/yaroslawww-laravel-cashier-tools/health.svg)

```
[![Health](https://phpackages.com/badges/yaroslawww-laravel-cashier-tools/health.svg)](https://phpackages.com/packages/yaroslawww-laravel-cashier-tools)
```

###  Alternatives

[maartenpaauw/filament-cashier-billing-provider

Filament billing provider for Laravel Cashier

10228.1k](/packages/maartenpaauw-filament-cashier-billing-provider)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
