devitek / torrent-fake-seeder
There is no license information available for the latest version (0.1) of this package.
Fake a torrent's seed
0.1
2014-07-25 20:25 UTC
Requires
- php: >=5.4.0
This package is auto-updated.
Last update: 2024-10-24 01:32:46 UTC
README
This script is just a PoC. Provide your torrent file and use it like this :
php composer.phar require devitek/torrent-fake-seeder dev-master
and then create a php file and put this :
<?php require_once('vendor/autoload.php'); use Devitek\Net\Torrent\Client\Azureus\Azureus45; use Devitek\Net\Torrent\Seeder; use Devitek\Net\Torrent\Torrent; $torrent = new Torrent('file.torrent'); $client = new Azureus45(); $seeder = new Seeder($client, $torrent); $seeder->bind('update', function ($data) { echo $data['uploaded'] . ' MB at ' . $data['speed'] . ' MB/sec uploaded' . PHP_EOL; }); $seeder->bind('error', function ($data) { echo $data['exception']->getMessage() . PHP_EOL; }); $seeder->seed();
This will fakely seed your file.torrent
file.
Please use it carefully. Feel free to test, fork and improve it.