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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package pushbox

Pushbox

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Pushbox is a Laravel package inspired by Mailbook: it lets you preview FCM push payloads for Notification classes in the browser, without wiring a one-off controller in your app.

Requirements: PHP 8.4+, Laravel 11 or 12.

Installation

Register the service provider and facade (Laravel 11+ auto-discovers them; otherwise add Andriichuk\Pushbox\PushboxServiceProvider to config/app.php).

Publish configuration (optional):

Scaffold the registration file:

This creates routes/pushbox.php where you register notifications (same idea as Mailbook’s routes/mailbook.php).

Usage

Open /pushbox (or your configured pushbox.path) when the app runs with routes enabled (by default: local only — see Security).

Registering notifications

Notifiable (to())

Many notifications expect a notifiable user. Mirror Mailbook’s API:

You can also scope several registrations:

Categories & groups

Variants

Localization

Add locales to config/pushbox.php (locales array). The UI shows a dropdown; the preview resolver sets app()->setLocale() while resolving payloads.

Database rollback

When pushbox.database_rollback is true, previews run inside a DB transaction that is rolled back after rendering (handy when factories persist models), similar to Mailbook.

FCM (push)

Install the channel package (suggested):

Implement toFcm($notifiable) on your notification as documented by that package. Pushbox serializes the returned FcmMessage via toArray() for the UI — no Firebase HTTP request happens during preview.

Test sending (optional)

Dangerous: sends a real notification through your configured FCM driver.

Every send is logged under the pushbox.sent / pushbox.send_failed context.

Security

Mailbook parity (overview)

Mailbook Pushbox
routes/mailbook.php routes/pushbox.php
Mailbook::add() Pushbox::add()
Mailbook::to() / group() / category() / variant() Same fluent ideas
Preview HTML mail Preview FCM JSON
Optional send Optional FCM send (gated)

Testing

License

The MIT License. See LICENSE.md.


All versions of pushbox with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
illuminate/support Version ^11.0|^12.0
illuminate/contracts Version ^11.0|^12.0
illuminate/routing Version ^11.0|^12.0
illuminate/view Version ^11.0|^12.0
illuminate/database Version ^11.0|^12.0
illuminate/notifications Version ^11.0|^12.0
illuminate/http Version ^11.0|^12.0
illuminate/log Version ^11.0|^12.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package andriichuk/pushbox contains the following files

Loading the files please wait ...