Download the PHP package mohdradzee/laravel-wati-notification without Composer
On this page you can find all versions of the php package mohdradzee/laravel-wati-notification. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mohdradzee/laravel-wati-notification
More information about mohdradzee/laravel-wati-notification
Files in mohdradzee/laravel-wati-notification
Download mohdradzee/laravel-wati-notification
More information about mohdradzee/laravel-wati-notification
Files in mohdradzee/laravel-wati-notification
Vendor mohdradzee
Package laravel-wati-notification
Short Description A custom Laravel notification channel for WATI WhatsApp API
License MIT
Package laravel-wati-notification
Short Description A custom Laravel notification channel for WATI WhatsApp API
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-wati-notification
๐ฒ WATI Notification Channel for Laravel
Send WhatsApp notifications via WATI API using Laravel's native notification system.
โจ Features
- Send WhatsApp messages via WATI using Laravel Notifications
- Custom notification channel (
wati) - Built-in support for multiple WATI API actions
- Clean, elegant API (
$user->notify(...)) - Easily extendable for new WATI endpoints
- Emits Laravel's
NotificationFailedevent on HTTP failures
๐ฆ Installation
If Laravel doesn't auto-discover the service provider, add this manually:
โ๏ธ Configuration
Publish the config:
This creates config/wati.php:
Add the following to your .env:
๐ ๏ธ Create a Demo Notification
Step 1: Generate Notification
Step 2: Edit app/Notifications/ConfirmWhatsappNumber.php
๐ค Usage in a Notifiable Model
Make sure your model uses the Notifiable trait:
Then notify the user:
โ WatiMessage API
๐ Strategy Support (Dynamic API Calls)
Each WATI API action is handled by its own strategy class:
| Action | Description | Strategy Class |
|---|---|---|
send_template |
Send template message | SendTemplateStrategy |
add_contact |
Add a WhatsApp contact | AddContactStrategy |
You can add your own by implementing:
Then register:
๐งช Testing in Tinker
๐ License
MIT License ยฉ mohdradzee
All versions of laravel-wati-notification with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
illuminate/notifications Version ^10.0
illuminate/support Version ^10.0
guzzlehttp/guzzle Version ^7.0
illuminate/notifications Version ^10.0
illuminate/support Version ^10.0
guzzlehttp/guzzle Version ^7.0
The package mohdradzee/laravel-wati-notification contains the following files
Loading the files please wait ...