PHPackages                             vohof/transmission - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. vohof/transmission

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

vohof/transmission
==================

Awesome PHP JSON-RPC client library for Transmission

v1.0.3(12y ago)181.7k2[3 issues](https://github.com/vohof/transmission/issues)[1 PRs](https://github.com/vohof/transmission/pulls)PHPPHP &gt;=5.3.0

Since Jul 21Pushed 7y ago4 watchersCompare

[ Source](https://github.com/vohof/transmission)[ Packagist](https://packagist.org/packages/vohof/transmission)[ RSS](/packages/vohof-transmission/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (3)Versions (7)Used By (0)

PHP Transmission RPC Client
===========================

[](#php-transmission-rpc-client)

A fully-tested PHP JSON-RPC client library for [Transmission](https://transmissionbt.com)

[![Build Status](https://camo.githubusercontent.com/4abf7fbb4974580a3bb5f9dc0a2f8dbfc518b67af3c27089d37544b0a2e3ebf6/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f766f686f662f7472616e736d697373696f6e2e706e67)](http://travis-ci.org/vohof/transmission)

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Usage](#example-usage)
- [Usage with Laravel](#use-transmission-with-laravel)
- [Advanced](#advanced)
- [To-Do](#to-do)
- [License](#license)

Installation
------------

[](#installation)

Install through [Composer](https://getcomposer.org):

```
{
  "require": {
    "vohof/transmission": "1.0.*"
  }
}
```

Example Usage
-------------

[](#example-usage)

```
$config = array(
    'host'     => 'http://127.0.0.1',
    'endpoint' => '/transmission/rpc',
    'username' => 'foo', // Optional
    'password' => 'bar' // Optional
);

$transmission = new Vohof\Transmission($config);

// Add a torrent
$torrent = $transmission->add('magnet:?xt=urn:btih:335990d615594b9be409ccfeb95864e24ec702c7&dn=Ubuntu+12.10+Quantal+Quetzal+%2832+bits%29&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80&tr=udp%3A%2F%2Ftracker.istole.it%3A6969&tr=udp%3A%2F%2Ftracker.ccc.de%3A80&tr=udp%3A%2F%2Fopen.demonii.com%3A1337');

// or
$content = base64_encode(file_get_contents('MyTorrent.torrent'));
$torrent = $transmission->add($content, true);

// Stop a torrent
$transmission->action('stop', $torrent['id']);

// Limit download speed
$transmission->set($torrent['id'], array('downloadLimit' => 100));

// Get torrent size
$transmission->get($torrent['id'], array('totalSize'));

// Remove torrent
$transmission->remove($torrent['id']););

// Remove torrent and its files
$transmission->remove($torrent['id'], true);

// Stats
$transmission->getStats();
```

See the tests for more usage

Use Transmission with Laravel
-----------------------------

[](#use-transmission-with-laravel)

Add the service provider and alias the package in `config/app.php`

```
'providers' => array(
    ...
    'Vohof\TransmissionServiceProvider'
),
'aliases' => array(
    ...
    'Transmission' => 'Vohof\TransmissionFacade'
)
```

Publish config and modify `app/config/packages/transmission/config.php`

```
$ php artisan config:publish transmission --path=vendor/vohof/transmission/src/config

```

Use the library:

```
Transmission::add($base64EncodedTorrent, true);
Torrent::stats();
```

Advanced
--------

[](#advanced)

The library uses [Guzzle](http://github.com/guzzle/huzzle) as it's HTTP Client but you can choose to swap it with something else if you want (eg. [Buzz](https://github.com/kriswallsmith/Buzz))

```
class BuzzClient extends \Vohof\ClientAbstract {
    ...
}

$transmission = new Vohof\Transmission($config, new BuzzClient);
```

To-Do
-----

[](#to-do)

- torrent-rename-path, blocklist-update

License
-------

[](#license)

See [LICENSE](LICENSE)

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 91.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Total

4

Last Release

4715d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/111611633?v=4)[vohof](/maintainers/vohof)[@vohof](https://github.com/vohof)

---

Top Contributors

[![cyrusdavid](https://avatars.githubusercontent.com/u/4394420?v=4)](https://github.com/cyrusdavid "cyrusdavid (11 commits)")[![djotto](https://avatars.githubusercontent.com/u/196276?v=4)](https://github.com/djotto "djotto (1 commits)")

---

Tags

laravelrpcjson-rpctransmission

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vohof-transmission/health.svg)

```
[![Health](https://phpackages.com/badges/vohof-transmission/health.svg)](https://phpackages.com/packages/vohof-transmission)
```

###  Alternatives

[stephenjude/filament-blog

Filament Blog Builder

20618.8k](/packages/stephenjude-filament-blog)[thiagof/laravelrpc

JsonRPC Client/Server services for Laravel 5

337.5k](/packages/thiagof-laravelrpc)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
