Skip to content

Commit

Permalink
Transfer ownership
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeykomlev committed Feb 12, 2024
1 parent 90bcd1b commit 594027a
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 41 deletions.
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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();
Expand All @@ -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
Expand All @@ -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();
Expand All @@ -165,7 +165,7 @@ $speedtest->download();
Output:

```console
NextpostTech\Speedtest\Result Object
Graftype\Speedtest\Result Object
(
[latency:protected] => 4.40
[download:protected] => 0
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.


4 changes: 2 additions & 2 deletions bin/speedtest
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions resources/demo.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
6 changes: 3 additions & 3 deletions src/Cli.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?php

namespace NextpostTech\Speedtest;
namespace Graftype\Speedtest;

/**
* Speedtest.net for PHP
*
* Library and command line interface to run server-side speedtests via Speedtest.net from cli or web interface.
*
* @link https://github.com/nextpost-tech/speedtest-php
* @link https://github.com/graftype/speedtest-php
*
* @author Nextpost.tech (https://nextpost.tech)
* @author Graftype (https://graftype.com)
*
* @source Original PHP version (https://github.com/aln-1/speedtest-php)
* @source Python version (https://github.com/sivel/speedtest-cli)
Expand Down
6 changes: 3 additions & 3 deletions src/Config.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?php

namespace NextpostTech\Speedtest;
namespace Graftype\Speedtest;

/**
* Speedtest.net for PHP
*
* Library and command line interface to run server-side speedtests via Speedtest.net from cli or web interface.
*
* @link https://github.com/nextpost-tech/speedtest-php
* @link https://github.com/graftype/speedtest-php
*
* @author Nextpost.tech (https://nextpost.tech)
* @author Graftype (https://graftype.com)
*
* @source Original PHP version (https://github.com/aln-1/speedtest-php)
* @source Python version (https://github.com/sivel/speedtest-cli)
Expand Down
8 changes: 4 additions & 4 deletions src/Progress.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?php

namespace NextpostTech\Speedtest;
namespace Graftype\Speedtest;

/**
* Speedtest.net for PHP
*
* Library and command line interface to run server-side speedtests via Speedtest.net from cli or web interface.
*
* @link https://github.com/nextpost-tech/speedtest-php
* @link https://github.com/graftype/speedtest-php
*
* @author Nextpost.tech (https://nextpost.tech)
* @author Graftype (https://graftype.com)
*
* @source Original PHP version (https://github.com/aln-1/speedtest-php)
* @source Python version (https://github.com/sivel/speedtest-cli)
Expand Down Expand Up @@ -46,7 +46,7 @@ public function start() {

/**
*
* @return \NextpostTech\Speedtest\Result
* @return \Graftype\Speedtest\Result
*/
public function getResult() {
return $this->result;
Expand Down
6 changes: 3 additions & 3 deletions src/Result.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?php

namespace NextpostTech\Speedtest;
namespace Graftype\Speedtest;

/**
* Speedtest.net for PHP
*
* Library and command line interface to run server-side speedtests via Speedtest.net from cli or web interface.
*
* @link https://github.com/nextpost-tech/speedtest-php
* @link https://github.com/graftype/speedtest-php
*
* @author Nextpost.tech (https://nextpost.tech)
* @author Graftype (https://graftype.com)
*
* @source Original PHP version (https://github.com/aln-1/speedtest-php)
* @source Python version (https://github.com/sivel/speedtest-cli)
Expand Down
8 changes: 4 additions & 4 deletions src/Speedtest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace NextpostTech\Speedtest;
namespace Graftype\Speedtest;

use GuzzleHttp\Client as GuzzleClient;
use GuzzleHttp\TransferStats as GuzzleTransferStats;
Expand All @@ -10,9 +10,9 @@
*
* Library and command line interface to run server-side speedtests via Speedtest.net from cli or web interface.
*
* @link https://github.com/nextpost-tech/speedtest-php
* @link https://github.com/graftype/speedtest-php
*
* @author Nextpost.tech (https://nextpost.tech)
* @author Graftype (https://graftype.com)
*
* @source Original PHP version (https://github.com/aln-1/speedtest-php)
* @source Python version (https://github.com/sivel/speedtest-cli)
Expand Down Expand Up @@ -615,7 +615,7 @@ public function share() {

/**
*
* @return \NextpostTech\Speedtest\Result
* @return \Graftype\Speedtest\Result
*/
public function results() {
return $this->progress->getResult();
Expand Down
6 changes: 3 additions & 3 deletions src/SpeedtestException.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?php

namespace NextpostTech\Speedtest;
namespace Graftype\Speedtest;

/**
* Speedtest.net for PHP
*
* Library and command line interface to run server-side speedtests via Speedtest.net from cli or web interface.
*
* @link https://github.com/nextpost-tech/speedtest-php
* @link https://github.com/graftype/speedtest-php
*
* @author Nextpost.tech (https://nextpost.tech)
* @author Graftype (https://graftype.com)
*
* @source Original PHP version (https://github.com/aln-1/speedtest-php)
* @source Python version (https://github.com/sivel/speedtest-cli)
Expand Down

0 comments on commit 594027a

Please sign in to comment.