Skip to content

Drop php72 add laravel 7 #90

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
45 changes: 8 additions & 37 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
<?php
// app/Providers/EventServiceProvider.php

/**
Expand All @@ -90,9 +61,9 @@ protected $listen = [

## Configuration
After installing the package you need to publish the configuration file via
```sh
$ php artisan vendor:publish --provider="Codedge\Updater\UpdaterServiceProvider"
```
```sh
$ php artisan vendor:publish --provider="Codedge\Updater\UpdaterServiceProvider"
```

**Note:** Please enter correct value for vendor and repository name in your `config/self-updater.php` if you want to
use Github as source for your updates.
Expand Down Expand Up @@ -169,7 +140,7 @@ Route::get('/', function (\Codedge\Updater\UpdaterManager $updater) {
**IMPORTANT**:
You're responsible to set the current version installed, either in the config file or better via the env variable `SELF_UPDATER_VERSION_INSTALLED`.

Currently the fetching of the source is a _synchronous_ process.
Currently, the fetching of the source is a _synchronous_ process.
It is not run in background.

### Using Github
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@
}
},
"require": {
"php": ">=7.2",
"php": ">=7.3",
"ext-json": "*",
"ext-zip": "*",
"laravel/framework": "^5.8|6.*",
"laravel/framework": "^6.0|^7.0",
"guzzlehttp/guzzle": "6.*"
},
"require-dev": {
Expand Down