PHP code example of rewrewby / php-rtorrent-client
1. Go to this page and download the library: Download rewrewby/php-rtorrent-client 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/ */
rewrewby / php-rtorrent-client example snippets
nt = new PHPRtorrentClient\Client(array('rpc_address'=>"http://localhost:8981/RPC2"));
$request = new PHPRtorrentClient\Request("system.listMethods");
$methods = $client->exec($request);
print_r($methods->getAll());