PHP code example of botamp / botamp-php

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

    

botamp / botamp-php example snippets



$botamp = new Botamp\Client(YOUR_API_KEY);
$entities = $botamp->entities->all();

foreach($entities as $entity)
{
    echo $entity['name'];
}
bash
composer 
bash
./vendor/bin/phpunit tests/ClientTest.php