PHPackages                             ohnotnow/laravel-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. ohnotnow/laravel-transmission

ActiveLibrary

ohnotnow/laravel-transmission
=============================

Laravel wrapper for the Transmission torrent server API

2.0.1(6y ago)4162MITPHP

Since Mar 3Pushed 6y ago1 watchersCompare

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

READMEChangelogDependencies (4)Versions (10)Used By (0)

WIP

Laravel API wrapper for Transmission
====================================

[](#laravel-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 in 'paused' mode. This was all I needed for my purposes in [transcopy](https://github.com/ohnotnow/transcopy).

If you want a plain PHP version without the Laravel stuff have a look at [the underlying library](https://github.com/ohnotnow/transmission-client).

Installing
==========

[](#installing)

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

```
composer require ohnotnow/laravel-transmission

```

Assuming you are on Laravel 5.5+ the package should be auto-discovered. If not you'll have to manually add it to the Providers/Aliases to add to your `config/app.php` :

```
'providers' => [
...
    Ohffs\LaravelTransmission\TransmissionServiceProvider::class,
...
],
'aliases' => [
...
    'Transmission' => Ohffs\LaravelTransmission\Transmission::class,
...
]
```

Usage
=====

[](#usage)

You need to set some environment variables first :

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

```

Then in a somewhere in your project :

```
use Ohffs\LaravelTransmission\Client;

class Whatever
{
    protected $transmission;

    public function __construct(Client $transmission)
    {
        $this->transmission = $transmission;
    }

    public function index()
    {
        return $this->transmission->all();
    }

    public function show($id)
    {
        return $this->transmission->find($id);
    }
}
```

You can also use the Transmission facade if you wish :

```
use Ohffs\LaravelTransmission\Transmission;

// ...

$allTorrents = Transmission::all();
$singleTorrent = Transmission::find(1);
```

The find() method returns a single TorrentEntry class, the all() method returns a collection of them. The data is in the format provided by Tranmissions API - so for example the 'percentDone' is given as a float from 0.0 to 1.0 so you'd have to multiply it by 100 to get a 'realistic' percentage. You can get the data from them :

```
$torrent = $this->transmission->find(1);
echo $torrent->toArray();
/*
 'name' => 'Some Exciting File',
 'id' => 1,
 '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'
```

Using the collection from all() you can use all of Laravel's collection methods of course. For example, to get a list of torrents which are still downloading :

```
$stillDownloading = $this->transmission->all()->filter(function ($torrent, $key) {
    return $torrent->percentDone < 1;
});
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity69

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 ~64 days

Recently: every ~128 days

Total

9

Last Release

2479d ago

Major Versions

1.1.1 → 2.0.02018-03-07

### 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 (23 commits)")

---

Tags

laravelphptransmissiontransmission-api

### Embed Badge

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

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

###  Alternatives

[aschmelyun/cleaver

A blazing-fast static site generator using Laravel's Blade templating engine

2961.0k](/packages/aschmelyun-cleaver)

PHPackages © 2026

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