mamadali/yii2-speed-test

Test Internet conection Widget

1.01 2021-02-21 08:42 UTC

This package is auto-updated.

Last update: 2024-10-21 17:13:58 UTC


README

Test Internet conection Widget

php source code

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',
    ]) ?>