sadovojav / yii2-antileech
There is no license information available for the latest version (dev-master) of this package.
Yii2 antileech component
Package info
github.com/sadovojav/yii2-antileech
Type:yii2-extension
pkg:composer/sadovojav/yii2-antileech
dev-master
2016-11-30 15:01 UTC
Requires
- php: >=5.4.0
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2026-03-01 00:22:46 UTC
README
Antileech component to stream files
Features:
- Speed limit
- Resumed downloads
Composer
The preferred way to install this extension is through Composer.
Either run php composer.phar require sadovojav/yii2-antileech "dev-master"
or add "sadovojav/yii2-antileech": "dev-master" to the require section of your composer.json
Config
Attach the component in your config file:
'components' => [ 'antileech' => [ 'class' => 'sadovojav\antileech\AntiLeech' ], ],
Use
Yii::$app->antileech->stream($filePath, 10000);
Parameters
- string
filePathrequired (string) -The full path to the file - integer
speedLimit- Speed limit