PHP code example of jeylabs / php-witai

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

    

jeylabs / php-witai example snippets

 bash
$ composer 
 php
$wit = new Irazasyed\Wit($access_token, $isAsyncRequests = false);
$response = $wit->getIntentByText('Whats the weather like in San Francisco?', $optional_params);