Looking to hire Laravel developers? Try LaraJobs

rapidsender-laravel maintained by bangabudesign

Description
Laravel Notification Channel for RapidSender WhatsApp API
Last update
2025/12/14 11:46 (dev-main)
License
Links
Downloads
67

Comments
comments powered by Disqus

RapidSender Laravel Notification Channel

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)