PHPackages                             ohffs/transmission-client - 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. ohffs/transmission-client

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

ohffs/transmission-client
=========================

PHP library for the Transmission BitTorrent client

1.0.4(6y ago)119511MITPHP

Since Mar 7Pushed 6y ago1 watchersCompare

[ Source](https://github.com/ohnotnow/transmission-client)[ Packagist](https://packagist.org/packages/ohffs/transmission-client)[ RSS](/packages/ohffs-transmission-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (6)Used By (1)

WIP

Basic PHP API wrapper for Transmission
======================================

[](#basic-php-api-wrapper-for-transmission)

This is a (for now) very basic wrapper around the [Transmission](https://transmissionbt.com/) bittorrent client's API.

For now it only supports getting a list of all current torrents, fetching a specific torrent and adding a new torrent. This was all I needed for my purposes in [transcopy](https://github.com/ohnotnow/transcopy).

If you are a Laravel user, you might want to check out the [Laravel Wrapper](https://github.com/ohnotnow/laravel-transmission).

Installing
==========

[](#installing)

Assuming you have [composer](https://getcomposer.org/) available :

```
composer require ohnotnow/transmission-client

```

Usage
=====

[](#usage)

```
$client = new \Ohffs\Transmission\Client('127.0.0.1', 9091, 'username', 'password');

$allTorrents = $client->all(); // returns an array of TorrentEntry's

$singleTorrent = $client->find(1234); // returns a single TorrentEntry or null

$borkedTorrent = $client->find(-1); // returns null

$ohno = $client->findOrFail(-1); // throws a RuntimeException

$newTorrent = $client->add('/path/to/an/exciting.torrent'); // returns a TorrentEntry

$pausedTorrent = $client->addPaused('/path/to/an/exciting.torrent'); // returns a TorrentEntry and pauses it in transmission

$client->remove(1234); // removes a torrent from transmission - returns a boolean
```

The `TorrentEntry` is a small class which wraps the data that comes back from Transmission :

```
$singleTorrent = $client->find(1234);
var_dump($singleTorrent->toArray());
/*
 'name' => 'Some Exciting File',
 'id' => 1234,
 'doneDate' => 0,
 'eta' => 1000,
 'haveValid' => 0,
 'rateDownload' => 0,
 'rateUpload' => 0,
 'status' => 2,
 'totalSize' => 364514248,
 'downloadDir' => '/tmp/torrents',
 'percentDone' => 0.3,
*/

// And you can also get those as attributes on the object, eg :

echo $torrent->name;
// 'Some Exciting File'
```

Instead of passing the host, username etc when creating a client, you can set some environment variables which will be used :

```
TRANSMISSION_HOST=127.0.0.1
TRANSMISSION_PORT=9091
TRANSMISSION_USERNAME=whatever
TRANSMISSION_PASSWORD=secret

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~127 days

Total

5

Last Release

2475d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5472be37b2cbedfa6c905bb674cb5780378cf2adcfc47befe01ad7bb4d14f734?d=identicon)[ohnotnow](/maintainers/ohnotnow)

---

Top Contributors

[![ohnotnow](https://avatars.githubusercontent.com/u/6471843?v=4)](https://github.com/ohnotnow "ohnotnow (6 commits)")

---

Tags

phptransmissiontransmission-api

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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