PHP code example of appzz / transmission-rpc

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

    

appzz / transmission-rpc example snippets




$tr = TransmissionRPC::factory('http://localhost:9091/transmission/rpc/);

$add = $tr->add_metainfo('torrent.torrent', '/pathto');
var_dump ($add)