PHP code example of tobycroft / btapi

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

    

tobycroft / btapi example snippets


composer 

use tobycroft\Bt\System;

// Database|File|Ftp|Plugin|Site|System
// 以上都extends了[Base]都可以调用,如以下示例
$bt = new System('http://127.0.0.1:8888', 'Key', 'cookie保存目录设置');
$bt->getSystemTotal();