2017 © Pedro Peláez
 

yii2-extension yii2-antileech

Yii2 antileech component

image

sadovojav/yii2-antileech

Yii2 antileech component

  • Wednesday, November 30, 2016
  • by sadovojav
  • Repository
  • 1 Watchers
  • 0 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Yii2 antileech

Antileech component to stream files, (*1)

Features:

  • Speed limit
  • Resumed downloads

Composer

The preferred way to install this extension is through Composer., (*2)

Either run php composer.phar require sadovojav/yii2-antileech "dev-master", (*3)

or add "sadovojav/yii2-antileech": "dev-master" to the require section of your composer.json, (*4)

Config

Attach the component in your config file:, (*5)

'components' => [
    'antileech' => [
        'class' => 'sadovojav\antileech\AntiLeech'
    ],
],

Use

Yii::$app->antileech->stream($filePath, 10000);

Parameters

  • string filePath required (string) -The full path to the file
  • integer speedLimit - Speed limit

The Versions

30/11 2016

dev-master

9999999-dev

Yii2 antileech component

  Sources   Download

The Requires

 

file yii2 distribute stream anti leech