sadovojav / yii2-antileech
Yii2 antileech component
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Type:yii2-extension
Requires
- php: >=5.4.0
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2024-11-29 05:20:38 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
filePath
required (string) -The full path to the file - integer
speedLimit
- Speed limit