From 594027ae4ce85965643722bbbef78786a4f0d97e Mon Sep 17 00:00:00 2001 From: Sergey Komlev Date: Mon, 12 Feb 2024 05:07:25 +0300 Subject: [PATCH] Transfer ownership --- README.md | 26 +++++++++++++------------- bin/speedtest | 4 ++-- composer.json | 8 ++++---- resources/demo.php | 4 ++-- src/Cli.php | 6 +++--- src/Config.php | 6 +++--- src/Progress.php | 8 ++++---- src/Result.php | 6 +++--- src/Speedtest.php | 8 ++++---- src/SpeedtestException.php | 6 +++--- 10 files changed, 41 insertions(+), 41 deletions(-) diff --git a/README.md b/README.md index 6e0d677..fab9af6 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,10 @@ Library and command line interface to run server-side speedtests via [Speedtest. This library is an updated version of [aln-1/speedtest-php](https://github.com/aln-1/speedtest-php) ported from the Python version [sivel/speedtest-cli](https://github.com/sivel/speedtest-cli). -[![Latest Version](https://poser.pugx.org/nextpost-tech/speedtest-php/v)](//packagist.org/packages/nextpost-tech/speedtest-php) -[![Total Downloads](https://poser.pugx.org/nextpost-tech/speedtest-php/downloads)](//packagist.org/packages/nextpost-tech/speedtest-php) -[![License](https://poser.pugx.org/nextpost-tech/speedtest-php/license)](//packagist.org/packages/nextpost-tech/speedtest-php) -[![PHP Version](https://img.shields.io/badge/php-%3E%3D%207.0-blue)](//packagist.org/packages/nextpost-tech/speedtest-php) +[![Latest Version](https://poser.pugx.org/graftype/speedtest-php/v)](//packagist.org/packages/graftype/speedtest-php) +[![Total Downloads](https://poser.pugx.org/graftype/speedtest-php/downloads)](//packagist.org/packages/graftype/speedtest-php) +[![License](https://poser.pugx.org/graftype/speedtest-php/license)](//packagist.org/packages/graftype/speedtest-php) +[![PHP Version](https://img.shields.io/badge/php-%3E%3D%207.0-blue)](//packagist.org/packages/graftype/speedtest-php) # Navigation @@ -117,7 +117,7 @@ Code: ```php require 'vendor/autoload.php'; -$speedtest = new NextpostTech\Speedtest\Speedtest(); +$speedtest = new Graftype\Speedtest\Speedtest(); $speedtest->getServers(); $speedtest->getBestServer(); $speedtest->download(); @@ -131,7 +131,7 @@ print_r($results); Output: ```console -NextpostTech\Speedtest\Result Object +Graftype\Speedtest\Result Object ( [latency:protected] => 4.57 [download:protected] => 47888585.578516 @@ -153,10 +153,10 @@ Code: ```php require 'vendor/autoload.php'; -$config = new NextpostTech\Speedtest\Config(); +$config = new Graftype\Speedtest\Config(); $config->setCallback(function ($results) { print_r($results); }); -$speedtest = new NextpostTech\Speedtest\Speedtest($config); +$speedtest = new Graftype\Speedtest\Speedtest($config); $speedtest->getServers(); $speedtest->getBestServer(); $speedtest->download(); @@ -165,7 +165,7 @@ $speedtest->download(); Output: ```console -NextpostTech\Speedtest\Result Object +Graftype\Speedtest\Result Object ( [latency:protected] => 4.40 [download:protected] => 0 @@ -177,7 +177,7 @@ NextpostTech\Speedtest\Result Object // More dump was here ... ```console -NextpostTech\Speedtest\Result Object +Graftype\Speedtest\Result Object ( [latency:protected] => 4.40 [download:protected] => 27519752.835724 @@ -218,7 +218,7 @@ usage: speedtest [-h] [--no-download] [--no-upload] [--single] [--bytes] Command line interface to run server-side speedtests via Speedtest.net from cli or web interface. -------------------------------------------------------------------------- -https://github.com/nextpost-tech/speedtest-php +https://github.com/graftype/speedtest-php optional arguments: -h, --help Show this help message and exit @@ -251,10 +251,10 @@ optional arguments: # Support -This is a developer's portal for Speedtest.net for PHP and should not be used for support. Please [contact us via website chat](https://nextpost.tech/#chatraChatExpanded) if you need to submit a support request. +This is a developer's portal for Speedtest.net for PHP and should not be used for support. Please [contact us via website chat](https://graftype.com/#chatraChatExpanded) if you need to submit a support request. # Paid Consultations & Personal Help -Please [contact us via website chat](https://nextpost.tech/#chatraChatExpanded) if you need additional help with your own project, we will try to find best options for you. +Please [contact us via website chat](https://graftype.com/#chatraChatExpanded) if you need additional help with your own project, we will try to find best options for you. diff --git a/bin/speedtest b/bin/speedtest index ccd7e35..7fc9c79 100644 --- a/bin/speedtest +++ b/bin/speedtest @@ -3,8 +3,8 @@ include $_composer_autoload_path ?? __DIR__ . '/../vendor/autoload.php'; -use NextpostTech\Speedtest\Cli; -use NextpostTech\Speedtest\SpeedtestException; +use Graftype\Speedtest\Cli; +use Graftype\Speedtest\SpeedtestException; try { new Cli(); diff --git a/composer.json b/composer.json index 1119189..5afcf76 100644 --- a/composer.json +++ b/composer.json @@ -1,16 +1,16 @@ { - "name": "nextpost-tech/speedtest-php", + "name": "graftype/speedtest-php", "description": "Speedtest.net for PHP | Library and command line interface", "authors": [ { - "name": "Nextpost.tech", - "homepage": "https://nextpost.tech", + "name": "Graftype", + "homepage": "https://graftype.com", "role": "Developer" } ], "autoload": { "psr-4": { - "NextpostTech\\Speedtest\\": "src/" + "Graftype\\Speedtest\\": "src/" } }, "require": { diff --git a/resources/demo.php b/resources/demo.php index 011e901..1b0ae50 100644 --- a/resources/demo.php +++ b/resources/demo.php @@ -7,13 +7,13 @@ function output($data) { ob_flush(); flush(); } - $config = new NextpostTech\Speedtest\Config(); + $config = new Graftype\Speedtest\Config(); $config->setCallback(function ($result) { $download = round((float)$result->getDownload() / 1000 / 1000, 2); $upload = round((float)$result->getUpload() / 1000 / 1000, 2); output(["result" => ['download' => $download, 'upload' => $upload]]); }); - $speedtest = new NextpostTech\Speedtest\Speedtest($config); + $speedtest = new Graftype\Speedtest\Speedtest($config); $clientInfo = $speedtest->clientInfo(); output(['client' => ['isp' => $clientInfo['isp'], 'ip' => $clientInfo['ip']]]); $speedtest->getServers(); diff --git a/src/Cli.php b/src/Cli.php index f6141d3..eee2e11 100644 --- a/src/Cli.php +++ b/src/Cli.php @@ -1,15 +1,15 @@ result; diff --git a/src/Result.php b/src/Result.php index 6284be7..0993e38 100644 --- a/src/Result.php +++ b/src/Result.php @@ -1,15 +1,15 @@ progress->getResult(); diff --git a/src/SpeedtestException.php b/src/SpeedtestException.php index b6c2876..39657a3 100644 --- a/src/SpeedtestException.php +++ b/src/SpeedtestException.php @@ -1,15 +1,15 @@