PHP code example of sawirricardo / whatsapp-php
1. Go to this page and download the library: Download sawirricardo/whatsapp-php 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/ */
sawirricardo / whatsapp-php example snippets
$client = \Sawirricardo\Whatsapp\Whatsapp::make($token, $phoneId)
->to('+111111111')
->message(TextMessageData::make('Hello world!'))
->send();
bash
composer