From a654448de59ec5c3a04d156de496bd54012ed3da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Holger=20Lo=CC=88sken?= Date: Mon, 2 Mar 2020 23:22:07 +0100 Subject: [PATCH 1/3] * Drop php 7.2 * Add Laravel 7 --- .github/workflows/tests.yml | 2 +- README.md | 45 +++++++------------------------------ composer.json | 4 ++-- 3 files changed, 11 insertions(+), 40 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ce9aa62..432a07c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,7 +6,7 @@ jobs: strategy: matrix: operating-system: [ubuntu-latest] - php-versions: ['7.2', '7.3', '7.4'] + php-versions: ['7.3', '7.4'] name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }} steps: - uses: actions/checkout@v1 diff --git a/README.md b/README.md index 7253830..af57bed 100644 --- a/README.md +++ b/README.md @@ -18,13 +18,8 @@ lovely users with Git and/or Composer commands ;-) ## Compatibility -* PHP: - * 7.2 - * 7.3 - * 7.4 -* Laravel: - * 5.8 - * 6.x +* PHP: 7.3 & 7.4 +* Laravel: 6.x & 7.x ## Install with Composer @@ -37,36 +32,12 @@ This adds the _codedge/laravel-selfupdater_ package to your `composer.json` and ## Register the package -Since Laravel 5.5 auto-discovery can be used to register packages - this is supported by this package. -So if you run Laravel >=5.5 the steps `[1]` and `[2]` are not needed. - -You need to include the service provider in your `config/app.php` `[1]` and optionally the _facade_ `[2]`: -```php -// config/app.php - -return [ - - //... - - 'providers' => [ - // ... - - Codedge\Updater\UpdaterServiceProvider::class, // [1] - ], - - // ... - - 'aliases' => [ - // ... - - 'Updater' => Codedge\Updater\UpdaterFacade::class, // [2] - -] -``` +The package is auto-registered. Additionally add the listener to your `app/Providers/EventServiceProvider.php` `[3]`: ```php +=7.2", + "php": ">=7.3", "ext-json": "*", "ext-zip": "*", - "laravel/framework": "^5.8|6.*", + "laravel/framework": "6.*", "guzzlehttp/guzzle": "6.*" }, "require-dev": { From 9e5529703e5ec8fa3e86d3ef0763247ecb61d588 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Holger=20Lo=CC=88sken?= Date: Tue, 3 Mar 2020 09:02:45 +0100 Subject: [PATCH 2/3] Laravel 7 support --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index a7fb4de..20f5d0a 100644 --- a/composer.json +++ b/composer.json @@ -51,7 +51,7 @@ "php": ">=7.3", "ext-json": "*", "ext-zip": "*", - "laravel/framework": "6.*", + "laravel/framework": "^6.*|^7.*", "guzzlehttp/guzzle": "6.*" }, "require-dev": { From 1b7a9e6d699cc5bf75ed36937be1fb596a3c1030 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Holger=20Lo=CC=88sken?= Date: Tue, 3 Mar 2020 09:05:10 +0100 Subject: [PATCH 3/3] Fix invalid version string --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 20f5d0a..3554f9e 100644 --- a/composer.json +++ b/composer.json @@ -51,7 +51,7 @@ "php": ">=7.3", "ext-json": "*", "ext-zip": "*", - "laravel/framework": "^6.*|^7.*", + "laravel/framework": "^6.0|^7.0", "guzzlehttp/guzzle": "6.*" }, "require-dev": {