PHP code example of whatsva / whatsapp-gateway
1. Go to this page and download the library: Download whatsva/whatsapp-gateway 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/ */
whatsva / whatsapp-gateway example snippets
hatsva\WhatsappGateway\Whatsva;
$config = [
"client_key"=>"62kKHlBf",
"secret_key"=>"T5NjaerXHuzFjtVj"
];
$receiver = "62895361034833";
$otp_code = "123456";
$whatsapp = new Whatsva($config);
echo $whatsapp->sendMessage($receiver,$otp_code);