diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..d874470 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2017-2021 Phil Cook + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/LICENSE.md b/LICENSE.md index a861532..d874470 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,14 +1,21 @@ -Copyright (c) 2015 Opsbears +MIT License -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated -documentation files (the "Software"), to deal in the Software without restriction, including without limitation the -rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit -persons to whom the Software is furnished to do so, subject to the following conditions: +Copyright (c) 2017-2021 Phil Cook -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the -Software. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE -WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index d987ef8..b202f13 100644 --- a/README.md +++ b/README.md @@ -3,23 +3,6 @@ [![Packagist](https://img.shields.io/packagist/v/philcook/gtmetrix.svg)](https://packagist.org/packages/philcook/gtmetrix) [![Packagist](https://img.shields.io/packagist/l/philcook/gtmetrix.svg)](https://packagist.org/packages/philcook/gtmetrix) -## License - -Copyright (c) 2017 Opsbears - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated -documentation files (the "Software"), to deal in the Software without restriction, including without limitation the -rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit -persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the -Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE -WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ## Installing This client library can be installed using [composer](https://getcomposer.org/): @@ -29,8 +12,8 @@ This client library can be installed using [composer](https://getcomposer.org/): ## Using ```php -use Entrecore\GTMetrixClient\GTMetrixClient; -use Entrecore\GTMetrixClient\GTMetrixTest; +use LightningStudio\GTMetrixClient\GTMetrixClient; +use LightningStudio\GTMetrixClient\GTMetrixTest; $client = new GTMetrixClient(); $client->setUsername('your@email.com'); @@ -47,3 +30,7 @@ while ($test->getState() != GTMetrixTest::STATE_COMPLETED && sleep(5); } ``` + +## Update information + +From version 2.0 references to Entrecore have been replace with LightningStudio due to Entrecore no longer existing and therefore avoiding confusion for users. diff --git a/assets/entrecore.png b/assets/entrecore.png deleted file mode 100644 index ffb8ba7..0000000 Binary files a/assets/entrecore.png and /dev/null differ diff --git a/assets/opsbears.png b/assets/opsbears.png deleted file mode 100644 index 7c87102..0000000 Binary files a/assets/opsbears.png and /dev/null differ diff --git a/composer.json b/composer.json index 73c68e1..f2682c1 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "license": "MIT", "autoload": { "psr-4": { - "Entrecore\\GTMetrixClient\\": "src/" + "LightningStudio\\GTMetrixClient\\": "src/" } }, "require": { diff --git a/src/GTMetrixBrowser.php b/src/GTMetrixBrowser.php index 120e03c..7e48ca8 100644 --- a/src/GTMetrixBrowser.php +++ b/src/GTMetrixBrowser.php @@ -1,7 +1,7 @@ getId(); } -} \ No newline at end of file +} diff --git a/src/GTMetrixTest.php b/src/GTMetrixTest.php index 5e39dd9..c22351c 100644 --- a/src/GTMetrixTest.php +++ b/src/GTMetrixTest.php @@ -1,7 +1,7 @@ client->getBrowsers(); foreach ($browsers as $browser) { - $this->assertInstanceOf('Entrecore\GTMetrixClient\GTMetrixBrowser', $browser); + $this->assertInstanceOf('LightningStudio\GTMetrixClient\GTMetrixBrowser', $browser); } } public function testGetLocations() { $locations = $this->client->getLocations(); foreach ($locations as $location) { - $this->assertInstanceOf('Entrecore\GTMetrixClient\GTMetrixLocation', $location); + $this->assertInstanceOf('LightningStudio\GTMetrixClient\GTMetrixLocation', $location); } } public function testStart() { - $test = $this->client->startTest('http://www.entrecore.com/'); + $test = $this->client->startTest('https://www.wikipedia.org/'); $this->assertNotEmpty($test->getId()); while ($test->getState() != GTMetrixTest::STATE_COMPLETED && $test->getState() != GTMetrixTest::STATE_ERROR) {