PHP code example of kejarkoding / whatsapp-gateway

1. Go to this page and download the library: Download kejarkoding/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/ */

    

kejarkoding / whatsapp-gateway example snippets




ejarkoding\WhatsappGateway\Whatsapp;

$config = [
    "client_key"=>"6dHL72Ty",
    "secret_key"=>"01rA9cifx33XnL7C"
];

$receiver = "62895361034833";
$otp_code = "123456";

$whatsapp = new Whatsapp($config);

echo $whatsapp->sendMessage($receiver,$otp_code);