PHPackages                             mohapinkepane/driver-whatsapp-cloud - 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. [API Development](/categories/api)
4. /
5. mohapinkepane/driver-whatsapp-cloud

ActiveLibrary[API Development](/categories/api)

mohapinkepane/driver-whatsapp-cloud
===================================

WABA Cloud API driver for BotMan

1.0.8(1y ago)10142↓100%3MITPHPPHP &gt;=7.0

Since Jul 24Pushed 1y ago1 watchersCompare

[ Source](https://github.com/mohapinkepane/driver-whatsapp-cloud)[ Packagist](https://packagist.org/packages/mohapinkepane/driver-whatsapp-cloud)[ Docs](https://github.com/mohapinkepane/driver-whatsapp-cloud)[ RSS](/packages/mohapinkepane-driver-whatsapp-cloud/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (6)Versions (11)Used By (0)

BotMan WhatsApp Business Cloud API Driver
-----------------------------------------

[](#botman-whatsapp-business-cloud-api-driver)

BotMan driver to connect WhatsApp Business Cloud API with [BotMan](https://github.com/botman/botman)

WhatsApp Business Cloud API
---------------------------

[](#whatsapp-business-cloud-api)

Please read the official documentation at [Meta for Developer](https://developers.facebook.com/docs/whatsapp/cloud-api)

Installation &amp; Setup
------------------------

[](#installation--setup)

First you need to pull in the Whatsapp Driver:

```
composer require mohapinkepane/driver-whatsapp-cloud

```

Next you need to add to your .env file the following entries:

```
WHATSAPP_ACCESS_TOKEN=your-whatsapp-access-token
WHATSAPP_VERIFICATION=your-whatsapp-verification-token
WHATSAPP_APP_SECRET=your-whatsapp-app-secret
WHATSAPP_PHONE_NUMBER_ID=your-whatsapp-phone-number-id

```

This driver requires a valid and secure URL in order to set up webhooks and receive events and information from the chat users. This means your application should be accessible through an HTTPS URL.

> [ngrok](https://ngrok.com/) is a great tool to create such a public HTTPS URL for your local application. If you use Laravel Valet, you can create it with "valet share".If you use Laravel Herd, you can create it with "herd share" as well.[Serveo](https://serveo.net/) is also an excellent and headache free alternative - it is also entirely free.

To connect BotMan with WhatsApp Business, you first need to follow the official quick [start guide](https://developers.facebook.com/docs/whatsapp/cloud-api/get-started) to create your WhatsApp Business application and retrieve an access token as well as an app secret. Switch both of them with the dummy values in your BotMan .env file.

After that you can setup the webhook, which connects the Whatsapp application with your BotMan application. This is covered in the above mentioned Quick Start Guide.

Configuring the package
-----------------------

[](#configuring-the-package)

You can publish the config file with:

```
php artisan vendor:publish --provider="Botman\Drivers\Whatsapp\Providers\WhatsappServiceProvider"

```

This is the contents of the file that will be published at config/botman/whatsapp.php:

```
