Download the PHP package zapmizer/laravel-notification-zapmizer without Composer

On this page you can find all versions of the php package zapmizer/laravel-notification-zapmizer. 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 laravel-notification-zapmizer

Zapmizer WhatsApp notification channel for Laravel 8 to 13

Installation

You can install the package via composer:

Now publish config file

Setting up your Zapmizer account

  1. Create a API TOKEN.
  2. Paste your API token in your zapmizer.php config file.
  3. Add environment viariables with values

Usage

In every Notification you wish to notify via WhatsApp, you must add a toZapmizer function and add 'zapmizer' drive into via's array:

Number verification

Mirroring Laravel's MustVerifyEmail: implement an interface and use a trait on your User model, and it gains the verification methods you'd expect. The user verifies through a hosted page on the Zapmizer domain — they message the team's WhatsApp number via wa.me and type back the code the bot replies with. Your app confirms the code (hosted page or your own input) and/or receives the terminal state on the team's webhooks. State lives in the package's own tables — your users table is never touched.

See the full setup guide — credentials, env vars, migrations, User model, signed return URL, confirmation webhook and events — in docs/verify-number.md.

Connecting a number per team (multi-tenant)

Mirroring Cashier's Billable: put the Connectable trait on the model that owns a WhatsApp number (a Team, a User, ...) and it gets its own Zapmizer connection. The whole flow happens in one hosted popup on Zapmizer — authorization, QR code pairing, webhook registration — and the callback lands with everything: no wizard, no QR code, no polling on your side. A connect button and a connection panel ship as publishable Inertia + Vue stubs. Inbound messages arrive signed on the package's webhook and fire MessageReceived with the connection that received them.

Bot events (message, ...) are only accepted signed. Single-tenant applications set ZAPMIZER_WEBHOOK_SECRET to the secret of the webhook they registered on Zapmizer; connected models store their own.

See docs/connect.md for the setup: partner credentials, the resolver, routes and statuses, the Vue stubs, the signed webhook and secret rotation. Requires Zapmizer 1.149.0 or later (hosted pairing); receiving media ($connection->media($message)) requires 1.150.0 or later.


All versions of laravel-notification-zapmizer with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
guzzlehttp/guzzle Version ^7.2 || ^8.0
illuminate/notifications Version ^8.83 || ^9.52 || ^10.0 || ^11.0 || ^12.0 || ^13.0
illuminate/http Version ^8.83 || ^9.52 || ^10.0 || ^11.0 || ^12.0 || ^13.0
illuminate/support Version ^8.83 || ^9.52 || ^10.0 || ^11.0 || ^12.0 || ^13.0
symfony/polyfill-intl-idn Version ^1.26
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 zapmizer/laravel-notification-zapmizer contains the following files

Loading the files please wait ...