PHPackages                             gusman-jti/laravel-notification-whatsapp - 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. gusman-jti/laravel-notification-whatsapp

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

gusman-jti/laravel-notification-whatsapp
========================================

Laravel notification driver for WhatsApp

0139PHP

Since Mar 27Pushed 1y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

WhatsApp notification channel for Laravel
=========================================

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/08f4f0a5b3c86f5d18d09d243187bec3524ad82927016fb7a4b99dfe1dd673e7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6574666c69652f6c61726176656c2d6e6f74696669636174696f6e2d77686174736170702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/netflie/laravel-notification-whatsapp/)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/2c7da05a92923f31b7586409eb433f089810558ab0139bf5815159dcd271c8eb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6e6574666c69652f6c61726176656c2d6e6f74696669636174696f6e2d77686174736170702f54657374732e7376673f7374796c653d666c61742d737175617265)](https://github.com/netflie/laravel-notification-whatsapp/actions)[![StyleCI](https://camo.githubusercontent.com/d9b7db16c61f2aa133b1bbf8a736bdf4931ff3c0047b706dc4410736661419b1/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3537363030353035392f736869656c64)](https://camo.githubusercontent.com/d9b7db16c61f2aa133b1bbf8a736bdf4931ff3c0047b706dc4410736661419b1/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3537363030353035392f736869656c64)[![Quality Score](https://camo.githubusercontent.com/64fd079724fcb0349291ff9a46cbcd089cc2bcb14dcf992f6ddd1c502b642800/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6e6574666c69652f6c61726176656c2d6e6f74696669636174696f6e2d77686174736170702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/netflie/laravel-notification-whatsapp)[![Code Coverage](https://camo.githubusercontent.com/db1d82d233c4a083ad113af08ca7c98928ad3f0ee76facb5dcbef1f165f44867/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6e6574666c69652f6c61726176656c2d6e6f74696669636174696f6e2d77686174736170702f6d61696e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/netflie/laravel-notification-whatsapp?branch=main)[![Total Downloads](https://camo.githubusercontent.com/c53edf6fd54a2cbc8d1cdfc1a5ddc601418a806e92102c556c0728ee6a380b99/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6574666c69652f6c61726176656c2d6e6f74696669636174696f6e2d77686174736170702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/netflie/laravel-notification-whatsapp/)

This package makes it easy to send notifications using [WhatsApp Cloud API](https://developers.facebook.com/docs/whatsapp/cloud-api/) with Laravel.

This package uses the [whatsapp-cloud-api](https://github.com/netflie/whatsapp-cloud-api) library that will allow you to send messages via the WhatsApp Cloud API from any type of project and framework written in PHP.

Contents
--------

[](#contents)

- [Installation](#installation)
    - [Setting up the WhatsApp service](#setting-up-the-WhatsApp-service)
- [Usage](#usage)
    - [Available Message methods](#available-message-methods)
- [Changelog](#changelog)
- [Testing](#testing)
- [Security](#security)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

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

[](#installation)

You can install the package via composer:

```
composer require netflie/laravel-notification-whatsapp

```

### Setting up the WhatsApp Cloud API

[](#setting-up-the-whatsapp-cloud-api)

Create a new Meta application and get your Whatsapp `application token` and `phone number id` following the ["Get Started"](https://developers.facebook.com/docs/whatsapp/cloud-api/get-started?locale=en_US#set-up-developer-assets) guide. Place them inside your `.env` file. To load them, add this to your `config/services.php` file:

```
