Skip to content

Commit

Permalink
Support for Laravel 6+ (#5)
Browse files Browse the repository at this point in the history
* Upgrade dependencies

* Use older dist for PHP 5.4 and 5.5 support

* Remove newer PHP versions in Travis

Travis is breaking in newer versions of PHP.

It's time for a major update :)

* Add note in readme about Laravel 6 support

* Prepare for 2.2 release
  • Loading branch information
gmsantos committed Jan 13, 2020
1 parent 9e1d3eb commit 8edf4bd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
language: php
dist: trusty

php:
- '5.4'
- '5.5'
- '5.6'
- '7.0'
- '7.1'
- '7.2'

before_script: composer install
script: composer tests
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ Include this package via Composer:
composer require gmsantos/inspiring
```

### Laravel 6 support

Version 2.2 adds support for Laravel 6+ as a migration path only. I do not guaratee that everything works in newer PHP versions because Travis CI tests fails in newer versions if I keep backawrds compatibility with Laravel 5.

I recommed to upgrade to version 3+ of this package for Laravel 6+ and PHP 7.2+ support.

### Laravel 5.3+

In Laravel 5.3, `app/Console/Commands/Inspire.php` has moved to `routes/console.php` clousure command.
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
],
"require": {
"php": ">=5.4.0",
"illuminate/support": "^5"
"illuminate/support": "^5 || ^6"
},
"autoload": {
"psr-4": {
"Gmsantos\\": "src/"
}
},
"require-dev": {
"phpunit/phpunit": "^4.8 || ^5.7 || ^6.4"
"phpunit/phpunit": "^4.8 || ^6.4 || ^8.5"
},
"autoload-dev": {
"psr-4": {
Expand All @@ -33,7 +33,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "2.1.x-dev"
"dev-master": "2.2.x-dev"
}
}
}

0 comments on commit 8edf4bd

Please sign in to comment.