clarkewing/cashier-nightwatch
Larablocks Analysis
clarkewing/cashier-nightwatch works with Laravel 12 and 13 (latest release v0.2.0, Jun 22, 2026).
Laravel 11 in earlier releases.
Recommendation checks
PromisingPromising: maintained and up to date, meets 2 of 4 checks; not yet widely used.
- Works with Laravel 13, the current version
- Released in the last 12 months (Jun 22, 2026)
- 264 downloads a month (needs 10,000)
- 0 GitHub stars (needs 100)
State
Maintained- Last stable release: Jun 22, 2026.
- 2 releases in the last 12 months.
- First released: Jun 22, 2026.
- Monthly downloads: 264.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 3, 2026.
| Install | |
|---|---|
composer require clarkewing/cashier-nightwatch |
|
| Latest Version: | v0.2.0 |
| PHP: | ^8.2 |
| Laravel: | 12 · 13 |
| Older releases: | 11 |
| License: | MIT |
| Last Updated: | Jun 22, 2026 |
| Links: | GitHub · Packagist |
Cashier Nightwatch
Surface Stripe API requests — those made by Laravel Cashier and the Stripe PHP SDK — on your Laravel Nightwatch timelines, with the request URL redacted by default.
Stripe's PHP SDK uses its own cURL client, so its API calls bypass Nightwatch's Guzzle instrumentation and never show up on your timelines. This package swaps in a Nightwatch-aware cURL client so they do.
Installation
composer require clarkewing/cashier-nightwatch
The service provider is auto-discovered. To customise redaction, publish the config:
php artisan vendor:publish --tag=cashier-nightwatch-config
What is recorded — and redacted
Nightwatch stores only the method, URL, byte sizes and status code for an outgoing request — never request/response headers or bodies. Consequently:
- Your Stripe secret key (the
Authorizationheader) is never captured. - Request/response bodies (card data, customer PII on writes) are never captured — only their byte size.
- The URL is the only sensitive surface, because Stripe
list/searchcalls put filters such asemailorcustomerin the query string.
By default the package redacts query-string values while keeping the keys:
GET https://api.stripe.com/v1/customers?email=REDACTED&limit=REDACTED
Configuration
| Key | Default | Description |
|---|---|---|
enabled |
true |
Master switch. No-ops if Nightwatch is not installed. |
redact_query |
keys |
keys (redact values, keep names)drop (remove the query string)keep (leave as-is — may log PII). |
mask_path_ids |
false |
Mask Stripe IDs in the path, e.g. /v1/customers/cus_***. |
Each maps to an env var: CASHIER_NIGHTWATCH_ENABLED, CASHIER_NIGHTWATCH_REDACT_QUERY, CASHIER_NIGHTWATCH_MASK_PATH_IDS.
For full control you can also use Nightwatch's own hook in a service provider (the record's url is mutable):
use Laravel\Nightwatch\Facades\Nightwatch;
Nightwatch::redactOutgoingRequests(function ($record) {
$record->url = '...';
});
Compatibility
This integrates at the Stripe SDK level (Stripe\ApiRequestor::setHttpClient) and relies on a few Laravel Nightwatch internals (Core::$clock, Core::$config, outgoingRequest(), paused()). It targets Nightwatch 1.x and may need updating across a Nightwatch major version.
Streaming Stripe responses (requestStream) are not instrumented.
Testing
composer install
composer test
License
MIT — see LICENSE.
Alternatives to clarkewing/cashier-nightwatch
Vantage: Strategic queue monitoring and observability for Laravel applications.
PostgreSQL monitoring for Laravel: wraparound, autovacuum, fillfactor-aware bloa...
Routes a Laravel app's own laravel/nightwatch telemetry to a self-hosted Hone se...
NightOwl monitoring agent — collects telemetry from laravel/nightwatch and write...
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v0.2.0 | ^8.2 | ^12.0 || | MIT | |
| v0.1.0 | ^8.2 | ^11.0 || | MIT |