PHP code example of kombyte / meta-whatsapp-api
1. Go to this page and download the library: Download kombyte/meta-whatsapp-api library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kombyte / meta-whatsapp-api example snippets
use Kombyte\Whatsapp\Api;
use Kombyte\Whatsapp\Messages;
$messages = new Messages(new Api($yourToken));
$messages->to('phone number')
->sendText('Hello');