PHPackages                             amish/stripe-test-clock - 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. amish/stripe-test-clock

ActiveLibrary[Payment Processing](/categories/payments)

amish/stripe-test-clock
=======================

Work with stripe test clocks in Laravel

v0.1.0(3y ago)0149MITPHP

Since May 5Pushed 3y agoCompare

[ Source](https://github.com/amishdev/stripe-test-clock)[ Packagist](https://packagist.org/packages/amish/stripe-test-clock)[ Docs](https://github.com/amishdev/stripe-test-clock)[ RSS](/packages/amish-stripe-test-clock/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

StripeTestClock
===============

[](#stripetestclock)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c176cc8528757093ba57885be4b31de0ae03bd50f3ee6358a3f057d8ac6f8062/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616d6973682f7374726970652d746573742d636c6f636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/amish/stripe-test-clock)[![Total Downloads](https://camo.githubusercontent.com/d88c77aa21b6616e441fb12aaec151c737c6cf0debaed89e629c15457598180a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616d6973682f7374726970652d746573742d636c6f636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/amish/stripe-test-clock)[![Build Status](https://camo.githubusercontent.com/bfc56c64a59bfc6f2cbd57a7c73edbfbbeeb1e8c2697548abced7089895457fb/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f616d6973682f7374726970652d746573742d636c6f636b2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/amish/stripe-test-clock)[![StyleCI](https://camo.githubusercontent.com/cb13a877afd1dbe223c631789c3f922d3ace958fdb334a9cce9b26afefbc2ebd/68747470733a2f2f7374796c6563692e696f2f7265706f732f31323334353637382f736869656c64)](https://styleci.io/repos/12345678)

Work with Stripe test clocks in laravel.

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

[](#installation)

Via Composer

```
composer require amish/stripe-test-clock
```

### Publish config

[](#publish-config)

```
php artisan vendor:publish --tag "stripe-test-clock.config"
```

### Run migrations

[](#run-migrations)

```
php artisan migrate
```

Usage
-----

[](#usage)

Create a test clock:

```
php artisan test-clock:create "Test 1 week trial"
```

### Assigning test clocks to your customers.

[](#assigning-test-clocks-to-your-customers)

To assign a clock to a customer for testing use the `StripeTestClock::stripeOptions()` method. This will add the 'test\_clock' key to your array if there is an active clock. It will not add the key if 'enabled' is set to false in your config, or if you don't have a clock active.

```
use Amish\StripeTestClock\Facades\StripeTestClock;

// using the StripeClient
$stripe->customers->create(StripeTestClock::stripeOptions([
    'email' => 'email@example.com',
    //...
]));

// Or using cashier
$user->createAsStripeCustomer(StripeTestClock::options());
```

From there you can work with the clock from the stripe dashboard or using the cli.

```
php artisan test-clock:advance -w 1 # advance the current clock by 1 week
php artisan test-clock:advance -m 1 -d 4 # advance the current clock by 1 month & 5 days
php artisan test-clock:advance "2023-07-19" # advance the clock to a specific date.
```

If a test clock is deleted in stripe or expires you can prune using the `artisan test-clock:prune` command to delete the models.

When testing locally I recommend using the stripe cli to forward webhook events to your app.

```
stripe listen -f http://localhost/stripe/webhook
```

Change log
----------

[](#change-log)

Please see the [changelog](changelog.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
composer test
```

Contributing
------------

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Author Name](https://github.com/amish)
- [All Contributors](../../contributors)

License
-------

[](#license)

MIT. Please see the [license file](license.md) for more information.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

1104d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cf7ca57075751c1182b311e5747c864dd4a4ab497073d10b51007a51cd573284?d=identicon)[ChristianPav](/maintainers/ChristianPav)

---

Top Contributors

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

---

Tags

laravelstripeStripeTestClock

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/amish-stripe-test-clock/health.svg)

```
[![Health](https://phpackages.com/badges/amish-stripe-test-clock/health.svg)](https://phpackages.com/packages/amish-stripe-test-clock)
```

###  Alternatives

[simonhamp/laravel-stripe-connect

1343.1k](/packages/simonhamp-laravel-stripe-connect)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)

PHPackages © 2026

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