/php-whatsapp-api

WhatsApp api (Meta)

Primary LanguagePHPMIT LicenseMIT

WhatsApp api

Call meta api

Installation

composer require kombyte/meta-whatsapp-api
use Kombyte\Whatsapp\Api;
use Kombyte\Whatsapp\Messages;

Usage

Create new Messages instance with Api

$messages = new Messages(new Api($yourToken));

Send messages

Add destination

$messages->to('phone number')
    ->sendText('Hello');