From 08965e34fe061c73f3ec8f5973450ed066341671 Mon Sep 17 00:00:00 2001 From: unicodeveloper Date: Mon, 6 May 2019 13:02:00 +0100 Subject: [PATCH 01/17] chore(identify): Update to PHP 7 and illuminate support to 5.5 --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index f3ed4d4..e6f2d7b 100644 --- a/composer.json +++ b/composer.json @@ -11,8 +11,8 @@ ], "minimum-stability": "stable", "require": { - "php": ">=5.6.4", - "illuminate/support": "~5.3.0|~5.4.0", + "php": ">=7.0.0", + "illuminate/support": "~5.3.0|~5.4.0|~5.5.0", "sinergi/browser-detector": "6.1.*" }, "require-dev": { From e34df6388c13c3219654c5bedacd224e949d3c46 Mon Sep 17 00:00:00 2001 From: unicodeveloper Date: Mon, 6 May 2019 13:02:50 +0100 Subject: [PATCH 02/17] chore(identify): Update phpunit/phpunit dependency to ~6.0 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index e6f2d7b..2d9e8d0 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ "sinergi/browser-detector": "6.1.*" }, "require-dev": { - "phpunit/phpunit": "5.3.*", + "phpunit/phpunit": "~6.0.0", "mockery/mockery": "0.9.*", "scrutinizer/ocular": "~1.1", "satooshi/php-coveralls": "^0.7.0" From 4e2e194ff14d5f9e3dbbfbb852a09f3d04b6d906 Mon Sep 17 00:00:00 2001 From: unicodeveloper Date: Mon, 6 May 2019 13:21:19 +0100 Subject: [PATCH 03/17] chore(identify): Add package auto-discovery --- composer.json | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 2d9e8d0..6893738 100644 --- a/composer.json +++ b/composer.json @@ -33,5 +33,15 @@ }, "scripts": { "test": "vendor/bin/phpunit" - } + }, + "extra": { + "laravel": { + "providers": [ + "Unicodeveloper\\Identify\\IdentifyServiceProvider", + ], + "aliases": { + "Identify": "Unicodeveloper\\Identify\\Facade" + } + } + }, } From a9b7d369a8304e5da15c8de54057dbae04b524f5 Mon Sep 17 00:00:00 2001 From: unicodeveloper Date: Mon, 6 May 2019 13:27:54 +0100 Subject: [PATCH 04/17] Remove trailing comma --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 6893738..ed6f204 100644 --- a/composer.json +++ b/composer.json @@ -37,7 +37,7 @@ "extra": { "laravel": { "providers": [ - "Unicodeveloper\\Identify\\IdentifyServiceProvider", + "Unicodeveloper\\Identify\\IdentifyServiceProvider" ], "aliases": { "Identify": "Unicodeveloper\\Identify\\Facade" From addd5e18d0a390b36439c320af5ed706be6ffd36 Mon Sep 17 00:00:00 2001 From: unicodeveloper Date: Mon, 6 May 2019 13:31:24 +0100 Subject: [PATCH 05/17] Remove another trailing comma --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index ed6f204..7a2380a 100644 --- a/composer.json +++ b/composer.json @@ -43,5 +43,5 @@ "Identify": "Unicodeveloper\\Identify\\Facade" } } - }, + } } From 53906f4b3ebea470e9383b4c9c8439874ab12ad8 Mon Sep 17 00:00:00 2001 From: unicodeveloper Date: Mon, 6 May 2019 13:42:17 +0100 Subject: [PATCH 06/17] feat(identify): Namespace PHPUnit test case and refactor tests toconform with new namespacing technique --- tests/IdentifyServiceProviderTest.php | 4 ++-- tests/IdentifyTest.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/IdentifyServiceProviderTest.php b/tests/IdentifyServiceProviderTest.php index 75cd533..87155c0 100644 --- a/tests/IdentifyServiceProviderTest.php +++ b/tests/IdentifyServiceProviderTest.php @@ -3,10 +3,10 @@ namespace Unicodeveloper\Identify\Test; use Mockery as m; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Unicodeveloper\Identify\{ Identify, IdentifyServiceProvider }; -class IdentifyServiceProviderTest extends PHPUnit_Framework_TestCase +class IdentifyServiceProviderTest extends TestCase { /** diff --git a/tests/IdentifyTest.php b/tests/IdentifyTest.php index 352c2c9..fbf8f81 100644 --- a/tests/IdentifyTest.php +++ b/tests/IdentifyTest.php @@ -2,11 +2,11 @@ namespace Unicodeveloper\Identify\Test; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Sinergi\BrowserDetector\{ Browser, Device, Language, Os }; use Unicodeveloper\Identify\Identify; -class IdentifyTest extends PHPUnit_Framework_TestCase +class IdentifyTest extends TestCase { /** From 2e08091e2da05054bf5eac2c118022dbc307fbc8 Mon Sep 17 00:00:00 2001 From: unicodeveloper Date: Mon, 6 May 2019 14:05:02 +0100 Subject: [PATCH 07/17] chore(identify): Refactor auto-discovery aliase to proper path --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 7a2380a..e0afe21 100644 --- a/composer.json +++ b/composer.json @@ -40,7 +40,7 @@ "Unicodeveloper\\Identify\\IdentifyServiceProvider" ], "aliases": { - "Identify": "Unicodeveloper\\Identify\\Facade" + "Identify": "Unicodeveloper\\Identify\\Facades\\IdentifyFacade" } } } From 06ce668226085d1f7d8843f807d4324f81a2e6bb Mon Sep 17 00:00:00 2001 From: unicodeveloper Date: Tue, 7 May 2019 04:02:12 +0100 Subject: [PATCH 08/17] change stable to dev --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index e0afe21..6c521f9 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ "email": "prosperotemuyiwa@gmail.com" } ], - "minimum-stability": "stable", + "minimum-stability": "dev", "require": { "php": ">=7.0.0", "illuminate/support": "~5.3.0|~5.4.0|~5.5.0", From e79d49918926169ed068fbceddffd9b5d010ac22 Mon Sep 17 00:00:00 2001 From: unicodeveloper Date: Tue, 7 May 2019 05:04:01 +0100 Subject: [PATCH 09/17] chore(identify): Remove minimum-stability attribute --- composer.json | 1 - 1 file changed, 1 deletion(-) diff --git a/composer.json b/composer.json index 6c521f9..a24122a 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,6 @@ "email": "prosperotemuyiwa@gmail.com" } ], - "minimum-stability": "dev", "require": { "php": ">=7.0.0", "illuminate/support": "~5.3.0|~5.4.0|~5.5.0", From 5bc7bccdca34c37b1ebb916d505c10213e161ec8 Mon Sep 17 00:00:00 2001 From: unicodeveloper Date: Tue, 7 May 2019 05:08:13 +0100 Subject: [PATCH 10/17] chore(identify): Bump PHP version and Illuminate support version --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index a24122a..7d2290f 100644 --- a/composer.json +++ b/composer.json @@ -10,8 +10,8 @@ } ], "require": { - "php": ">=7.0.0", - "illuminate/support": "~5.3.0|~5.4.0|~5.5.0", + "php": ">=7.1.3", + "illuminate/support": "~5.3.0|~5.4.0|~5.5.0|~5.6.0", "sinergi/browser-detector": "6.1.*" }, "require-dev": { From 4cbfb2463fee558b233d4625ce783e9448cce638 Mon Sep 17 00:00:00 2001 From: unicodeveloper Date: Tue, 7 May 2019 05:16:48 +0100 Subject: [PATCH 11/17] chore(travis): Bump to PHP 7.2 --- .travis.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9b43a39..b5535bc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,7 @@ language: php php: - - 7.0 - - 7.1 - - hhvm + - 7.2 matrix: allow_failures: From 56e0c4e629efb1781a13eedfd74465879c883229 Mon Sep 17 00:00:00 2001 From: unicodeveloper Date: Tue, 7 May 2019 05:37:18 +0100 Subject: [PATCH 12/17] chore(identify): Bump Illuminate support to 5.7 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 7d2290f..ebb42bb 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ ], "require": { "php": ">=7.1.3", - "illuminate/support": "~5.3.0|~5.4.0|~5.5.0|~5.6.0", + "illuminate/support": "~5.6.0|~5.7.0", "sinergi/browser-detector": "6.1.*" }, "require-dev": { From bdf4eb634d4318ef8d2ea297be9c381eaa3457b1 Mon Sep 17 00:00:00 2001 From: unicodeveloper Date: Tue, 7 May 2019 05:47:37 +0100 Subject: [PATCH 13/17] chore(identify): Bump Illuminate Support to 5.8 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index ebb42bb..4b10046 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ ], "require": { "php": ">=7.1.3", - "illuminate/support": "~5.6.0|~5.7.0", + "illuminate/support": "~5.7.0|~5.8.0", "sinergi/browser-detector": "6.1.*" }, "require-dev": { From 0a86df9c28f561b0228f0908948f9d9a77a41b5b Mon Sep 17 00:00:00 2001 From: unicodeveloper Date: Tue, 7 May 2019 06:09:16 +0100 Subject: [PATCH 14/17] fix(identify): Make setUp method compatible with PHPUnit TestCase --- tests/IdentifyServiceProviderTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/IdentifyServiceProviderTest.php b/tests/IdentifyServiceProviderTest.php index 87155c0..7b3f19d 100644 --- a/tests/IdentifyServiceProviderTest.php +++ b/tests/IdentifyServiceProviderTest.php @@ -19,7 +19,7 @@ class IdentifyServiceProviderTest extends TestCase */ protected $provider; - protected function setUp() + protected function setUp(): void { parent::setUp(); $this->mockApp = m::mock('\Illuminate\Contracts\Foundation\Application'); From 0effb4c3782e97d92f5e9f17dc337918a98f075b Mon Sep 17 00:00:00 2001 From: unicodeveloper Date: Tue, 7 May 2019 06:15:44 +0100 Subject: [PATCH 15/17] fix(identify): Make setUp compatible with PHPUnit Testcase in IdentifyTest --- tests/IdentifyTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/IdentifyTest.php b/tests/IdentifyTest.php index fbf8f81..805a058 100644 --- a/tests/IdentifyTest.php +++ b/tests/IdentifyTest.php @@ -15,7 +15,7 @@ class IdentifyTest extends TestCase */ protected $identify; - protected function setUp() + protected function setUp() : void { parent::setUp(); $this->identify = new Identify(); From 252abc1fe72b2e8087c671b8e6f95e477f297e12 Mon Sep 17 00:00:00 2001 From: unicodeveloper Date: Tue, 7 May 2019 06:28:38 +0100 Subject: [PATCH 16/17] chore(readme): Improve readme --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1f80fdb..c21caff 100644 --- a/README.md +++ b/README.md @@ -12,17 +12,18 @@ ## Installation -[PHP](https://php.net) 5.4+ or [HHVM](http://hhvm.com) 3.3+, and [Composer](https://getcomposer.org) are required. +[PHP](https://php.net) 7.1+ or [HHVM](http://hhvm.com) 3.3+, and [Composer](https://getcomposer.org) are required. To get the latest version of Laravel Identify, simply add the following line to the require block of your `composer.json` file. ``` -"unicodeveloper/laravel-identify": "1.1.*" +"unicodeveloper/laravel-identify": "1.7.*" ``` You'll then need to run `composer install` or `composer update` to download it and have the autoloader updated. -Once Laravel Identify is installed, you need to register the service provider. Open up `config/app.php` and add the following to the `providers` key. +- If you're on Laravel 5.5 or above, that's all you need to do! Check out the usage examples below. +- If you're on Laravel < 5.5, you'll need to register the service provider once the package is installed. Open up `config/app.php` and add the following to the `providers` array: * `Unicodeveloper\Identify\IdentifyServiceProvider::class` From a26418754f5ca45913bc9e03df56fedfdeb5ea61 Mon Sep 17 00:00:00 2001 From: unicodeveloper Date: Tue, 7 May 2019 06:33:34 +0100 Subject: [PATCH 17/17] chore(changelog): Add release notes --- CHANGELOG.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 11e5ee5..ceaf876 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,5 +2,13 @@ All Notable changes to `laravel-identify` will be documented in this file -## 2015-11-04 -- Initial release \ No newline at end of file +## Jan 19, 2016 +- Initial release + +## May 6, 2019 +- Add support for Laravel 5.3, 5.4 +- Bump Browser Detector to v6 + +## May 7, 2019 +- Add support for Laravel 5.5, 5.6, 5.7 and 5.8 +- Add support for Laravel auto package discovery \ No newline at end of file