mamadali / yii2-speed-test
Test Internet conection Widget
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- guzzlehttp/guzzle: *
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2024-12-21 17:53:56 UTC
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', ]) ?>