Skip to content

Commit

Permalink
Add Laravel 5.5 compatibility with Auto-Discovery
Browse files Browse the repository at this point in the history
- Require php 7.0+
- Upgrade to phpunit 6.5.x
- Add php 7.2 to travis-ci
  • Loading branch information
pixelpeter committed Dec 25, 2017
1 parent 5c4e005 commit f308b09
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
8 changes: 3 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
language: php

php:
- 5.6
- 7.0
- 7.1
- 7.2

matrix:
allow_failures:
- env: dependencies=lowest
include:
- php: 5.6
env: dependencies=highest
- php: 7.0
env: dependencies=highest
- php: 7.1
env: dependencies=highest
- php: 7.2
env: dependencies=highest

before_script:
- composer self-update -q
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All Notable changes for the Laravel 5 IsoCodes Validation will be documented in this file

## 2.0.0
- Laravel 5.5 compatibility with Auto-Discovery
- Require php 7.0+
- Upgrade to phpunit 6.5.x
- Add php 7.2 to travis-ci

## 1.2.0
Added support for following validation rules
- BSN
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ A simple Laravel 5 wrapper for the [IsoCodes Validation library](https://github.
composer require pixelpeter/laravel5-isocodes-validation
```

### Step 2: Add the Service Provider
### Step 2: Add the Service Provider (not needed with v2.x because of auto discovery)
Add the service provider in `app/config/app.php`
```php
'provider' => [
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
],
"require": {
"php": ">=5.5.9",
"php" : "^7.0",
"ronanguilloux/isocodes": "^2.1.1"
},
"autoload": {
Expand All @@ -35,9 +35,9 @@
]
},
"require-dev": {
"phpunit/phpunit": "^5.7",
"mockery/mockery": "^0.9.4",
"phpunit/phpunit": "^6.5",
"mockery/mockery": "^1.0.0",
"satooshi/php-coveralls": "^1.0",
"laravel/laravel": "5.4.*"
"laravel/laravel": "5.5.*"
}
}

0 comments on commit f308b09

Please sign in to comment.