PHPackages                             mchuluq/laravel-whatsapp-notification-channel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. mchuluq/laravel-whatsapp-notification-channel

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

mchuluq/laravel-whatsapp-notification-channel
=============================================

laravel whatsapp notification channel for use in pair with my whatsapp micro service

00PHP

Since May 13Pushed 12mo ago1 watchersCompare

[ Source](https://github.com/mchuluq/laravel-whatsapp-notification-channel)[ Packagist](https://packagist.org/packages/mchuluq/laravel-whatsapp-notification-channel)[ RSS](/packages/mchuluq-laravel-whatsapp-notification-channel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel WhatsApp Notification Channel
=====================================

[](#laravel-whatsapp-notification-channel)

A WhatsApp notification channel for Laravel 7.0 and above. I'm using it to pair with my [whatsapp microservice](https://github.com/mchuluq/whatsapp-microservice)

Installation
------------

[](#installation)

1. Install the package via composer:

```
composer require mchuluq/laravel-whatsapp-notification-channel
```

2. Publish the config file:

```
php artisan vendor:publish --tag=whatsapp-config
```

3. Add these variables to your `.env` file:

```
WHATSAPP_BASE_URL=http://localhost:3000/api/
WHATSAPP_API_TOKEN=your-api-token-here
WHATSAPP_UNIT_ID=your-unit-id
WHATSAPP_DEBUG_MODE=false
```

Usage
-----

[](#usage)

```
use Illuminate\Notifications\Notification;

class OrderShipped extends Notification
{
    public function via($notifiable)
    {
        return ['whatsapp'];
    }

    public function toWhatsapp($notifiable)
    {
        return [
            'message' => 'Your order has been shipped!',
            'media_path' => 'path/to/media.jpg', // optional
            'document_path' => 'path/to/document.pdf' // optional
        ];
    }
}
```

Make sure your Notifiable model has the `routeNotificationForWhatsapp` method:

```
public function routeNotificationForWhatsapp()
{
    return $this->phone_number;
}
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity14

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/fd90760a78da54cd0c335ffb7428b1187c6d440f05cdfcd7332a410833d85dfb?d=identicon)[mchuluq](/maintainers/mchuluq)

---

Top Contributors

[![mchuluq](https://avatars.githubusercontent.com/u/3388761?v=4)](https://github.com/mchuluq "mchuluq (1 commits)")

### Embed Badge

![Health badge](/badges/mchuluq-laravel-whatsapp-notification-channel/health.svg)

```
[![Health](https://phpackages.com/badges/mchuluq-laravel-whatsapp-notification-channel/health.svg)](https://phpackages.com/packages/mchuluq-laravel-whatsapp-notification-channel)
```

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
