mamadali/yii2-speed-test
Composer 安装命令:
composer require mamadali/yii2-speed-test
包简介
Test Internet conection Widget
README 文档
README
Test Internet conection Widget
Installation
The preferred way to install this extension is through composer.
Either run
composer require mamadali/yii2-speed-test "*"
or add
"mamadali/yii2-speed-test": "*"
to the require section of your composer.json file.
and run this command
composer update
Usage
First add this code to config file
'modules' => [
...
'speed-test' => [
'class' => 'mamadali\speedtest\Module',
'ipinfo_api_key' => // your api key from ipinfo.io,
],
...
]
And run this command
php yii migrate/up --migrationPath=@vendor/mamadali/yii2-speed-test/migrations
Once the extension is installed, simply use it in your code by :
<?= \mamadali\speedtest\SpeedTestWidget::widget([ 'title' => 'Internet speed test', ]) ?>
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0
- 更新时间: 2021-02-20