Download the PHP package andriichuk/pushbox without Composer
On this page you can find all versions of the php package andriichuk/pushbox. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download andriichuk/pushbox
More information about andriichuk/pushbox
Files in andriichuk/pushbox
Package pushbox
Short Description Preview and test Laravel push notifications.
License MIT
Informations about the package pushbox
Pushbox
A notification studio for Laravel.
Preview FCM payloads, compare variants and translations, and send test notifications to your device.
Getting started · Variants and translations · Test sending
Inspired by Mailbook.
Requirements: PHP 8.4/8.5 and Laravel 12/13. The optional real-send integration supports laravel-notification-channels/fcm 6.2+ (6.x).
Install and preview
Open /pushbox. Register notifications in the generated routes/pushbox.php.
To preview FCM notifications, install the optional channel:
app/Notifications/WelcomePush.php:
Register it in routes/pushbox.php:
Previews do not send notifications. Without the FCM channel, Pushbox can preview objects exposing toArray().
Recipients, categories, variants, and translations
Use a typed recipient and factories for different examples:
Factories must declare their concrete notification return type. To add a language selector, publish the configuration and set locales:
Use factory()->make() for sample recipients. PUSHBOX_DATABASE_ROLLBACK=true rolls back preview writes on the default database connection only.
Send to a test device
- Configure Firebase using the FCM channel's installation instructions.
-
Enable sending in
.env: - Open Device settings, save your device's FCM token, then press Send notification. Use a token from the same Firebase project as your credentials.
Sends run immediately through FCM. Results show accepted, failed, or skipped; accepted does not guarantee delivery.
Enablement and access
Pushbox is enabled by default in every environment and remains installed with composer install --no-dev. To disable it:
Restrict access with your application's middleware or a viewPushbox Gate:
A defined Gate applies to every Pushbox route. Configure pushbox.middleware for authentication, pushbox.path for a custom URL, or PUSHBOX_ALLOWED_IPS for an IP allowlist.
After configuration changes, rebuild any configuration and route caches used by your application.
Contributing and support
See Security for vulnerability reports.
License
MIT.
All versions of pushbox with dependencies
illuminate/support Version ^12.0|^13.0
illuminate/contracts Version ^12.0|^13.0
illuminate/routing Version ^12.0|^13.0
illuminate/view Version ^12.0|^13.0
illuminate/database Version ^12.0|^13.0
illuminate/notifications Version ^12.0|^13.0
illuminate/http Version ^12.0|^13.0
illuminate/log Version ^12.0|^13.0
