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.
Download zapmizer/laravel-notification-zapmizer
More information about zapmizer/laravel-notification-zapmizer
Files in zapmizer/laravel-notification-zapmizer
Package laravel-notification-zapmizer
Short Description WhatsApp through Zapmizer for Laravel: notification channel, a number per model through the hosted connect flow, signed webhooks, embedded inbox and number verification.
License MIT
Homepage https://github.com/zapmizer/laravel-notification-zapmizer
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
- Create a API TOKEN.
- Paste your API token in your
zapmizer.phpconfig file. - 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
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