2017 © Pedro Peláez
 

library transmission-remote

A wrapper for the transmission-remote CLI utility.

image

bluelyte/transmission-remote

A wrapper for the transmission-remote CLI utility.

  • Saturday, April 20, 2013
  • by bluelyte
  • Repository
  • 1 Watchers
  • 4 Stars
  • 18 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 13 % Grown

The README.md

bluelyte/transmission-remote

A PHP wrapper for the transmission-remote CLI utility., (*1)

DISCLAIMER: This project is not endorsed by, affiliated with, or intended to infringe upon the Transmission project and is meant for non-commercial purposes (i.e. personal use) only., (*2)

Install

The recommended method of installation is through composer., (*3)

{
    "require": {
        "bluelyte/transmission-remote": "1.0.0"
    }
}

Usage

<?php

require __DIR__ . '/vendor/autoload.php';

// Configuration and initialization
$remote = new \Bluelyte\Transmission\Remote();
$remote->setEncryption(false); // not recommended - is true by default
$remote->setPort(12345); // uses standard BitTorrent port by default
$remote->setUpnp(true); // is false by default
$remote->setDownloadPath('/path/for/downloads');
$remote->start();

// Handling torrents
$remote->addTorrents('/path/to/file1.torrent');
$remote->addTorrents('/path/to/file2.torrent /path/to/file3.torrent');
$remote->addTorrents(array('/path/to/file4.torrent', '/path/to/file5.torrent'));
$remote->startTorrents();

// Debugging
var_dump($remote->getOutput(), $remote->getStatus());

License

Released under the BSD License. See LICENSE., (*4)

The Versions

20/04 2013

dev-master

9999999-dev

A wrapper for the transmission-remote CLI utility.

  Sources   Download

BSD-2-Clause

The Requires

  • php >=5.3.3

 

cli torrent transmission torrents bittorrent