PHP code example of it2k / tmapi

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

    

it2k / tmapi example snippets



ions = array('ip' => '127.0.0.1', 'secret_key' => 'secret api key');

$manager = new \It2k\TMApi\Manager($options);

if ($manager->ping()) {
    print "OK\n";
} else {
    print "FALSE\n";
}
 bash
$ php composer.phar