PHP code example of kynno / smartbots-bundle

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

    

kynno / smartbots-bundle example snippets


// config/bundles.php

return [
    // ...
    Kynno\SmartBotsBundle\SmartBotsBundle::class => ['all' => true],
];



$this->smartBots->im('Heyter Nitely', "Hey, it's working!");
// or
$this->smartBots->getBot('Leekyn')->im('Heyter Nitely', "Hey, it's working with a specific bot!");