PHP code example of foxtes / botman-wazzup-driver
1. Go to this page and download the library: Download foxtes/botman-wazzup-driver 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/ */
foxtes / botman-wazzup-driver example snippets
// ...
// Applying driver
DriverManager::loadDriver(\BotMan\Drivers\WazzupDriver\WhatsAppDriver::class);
// ...
$botman->hears('Hello', function ($bot) {
$bot->reply('Hi, '.$bot->getUser()->getFirstName());
});