bangabudesign / rapidsender-laravel
Laravel Notification Channel for RapidSender WhatsApp API
Installs: 37
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/bangabudesign/rapidsender-laravel
Requires
- php: ^8.1
README
Send WhatsApp notifications via RapidSender API using Laravel Notification system.
Installation
composer require bangabudesign/rapidsender-laravel
Configuration
php artisan vendor:publish --tag=rapidsender-config
Set env:
RAPIDSENDER_API_KEY=
RAPIDSENDER_CHANNEL_ID=
Usage
class InvoiceCreated extends Notification { public function via($notifiable) { return ['rapidsender']; } public function toRapidSender($notifiable) { return RapidSenderMessage::make() ->to($notifiable->routeNotificationFor('rapidsender')) ->content('Invoice created successfully'); } }
Routing Phone Number
public function routeNotificationForRapidSender() { return $this->phone; }
Recipient must be in international format (+628xxx)