alaaelsaid / laravel-wati-whatsapp
This Package for integration with wati servive
Installs: 1 221
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 1
README
You can install the package via Composer.
composer require alaaelsaid/laravel-wati-whatsapp
Publishing
After install publish file config
php artisan vendor:publish --tag="wati"
Env
In the .env file you can add those keys:
WATI_TEMPLATE=template_name WATI_ENDPOINT=endpoint WATI_ACCESS_TOKEN=access_token
Usage
use Alaaelsaid\LaravelWatiWhatsapp\Facade\Whatsapp; // to send single phone number; Whatsapp::send('+201007153686', "hello world", "John Smith"); // to send multi phone numbers; // $users => collection of users to send a mutiple phone numbers; // column => whatsapp column in users table; // name => the column name of the user in the users table ex: [ name, fullname ]; Whatsapp::multi(message: "hello world", users: $users, column: 'whatsapp', name: 'John Smith'');