Skip to content

Commit 4907b00

Browse files
Support Laravel 6 (#21)
1 parent a81b9f3 commit 4907b00

File tree

6 files changed

+17
-28
lines changed

6 files changed

+17
-28
lines changed

.travis.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
language: php
22

33
php:
4-
- 5.4
5-
- 5.5
6-
- 5.6
7-
- 7.0
8-
- 7.1
4+
- 7.2
5+
- 7.3
96

107
before_script:
118
- composer self-update
129
- composer install --prefer-source --no-interaction --dev
1310

14-
script: phpunit
11+
script: vendor/bin/phpunit

README.md

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,19 @@ A Laravel wrapper for [phpInsight](https://github.com/JWHennessey/phpInsight).
1212

1313
## Installation
1414

15-
[PHP](https://php.net) 5.4+ or [HHVM](http://hhvm.com) 3.3+, and [Composer](https://getcomposer.org) are required.
15+
[PHP](https://php.net) 7.2+, and [Composer](https://getcomposer.org) are required.
1616

17-
To get the latest version of Laravel Sentiment Analysis, simply add the following line to the require block of your `composer.json` file:
18-
19-
```json
20-
"antoineaugusti/laravel-sentiment-analysis": "~2.0"
21-
```
22-
23-
You'll then need to run `composer install` or `composer update` to download it and have the autoloader updated.
24-
25-
This package supports auto discovery for Laravel 5.5+. If you don't have a version above 5.5 yet, you need to register the service provider. Open up `config/app.php` and add the following to the `providers` key.
26-
27-
```php
28-
Antoineaugusti\LaravelSentimentAnalysis\LaravelSentimentAnalysisServiceProvider::class,
29-
```
17+
To get the latest version of Laravel Sentiment Analysis, run the command `composer require antoineaugusti/laravel-sentiment-analysis`.
3018

3119
You can register the SentimentAnalysis facade in the `aliases` key of your `config/app.php` file if you like.
3220

3321
```php
3422
'SentimentAnalysis' => Antoineaugusti\LaravelSentimentAnalysis\SentimentAnalysis::class,
3523
```
3624

25+
#### Looking for a Laravel 5 compatible version?
26+
Checkout the [1.2 version](https://github.com/AntoineAugusti/laravel-sentiment-analysis/releases/tag/v2.2), installable by requiring `"antoineaugusti/laravel-sentiment-analysis": "2.2"`.
27+
3728
#### Looking for a Laravel 4 compatible version?
3829
Checkout the [1.2 version](https://github.com/AntoineAugusti/laravel-sentiment-analysis/releases/tag/v1.2), installable by requiring `"antoineaugusti/laravel-sentiment-analysis": "1.2"`.
3930

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
}
1111
],
1212
"require": {
13-
"php": ">=5.4.0",
14-
"illuminate/support": "~5.0",
13+
"php": ">=7.2",
14+
"illuminate/support": "^6.0",
1515
"jwhennessey/phpinsight": "~2.0"
1616
},
1717
"require-dev": {
18-
"phpunit/phpunit": "~4.0"
18+
"phpunit/phpunit": "^8.5"
1919
},
2020
"autoload": {
2121
"psr-4": {

phpunit.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
convertWarningsToExceptions="true"
99
processIsolation="false"
1010
stopOnFailure="false"
11-
syntaxCheck="false"
1211
>
1312
<testsuites>
1413
<testsuite name="Package Test Suite">

tests/LaravelSentimentAnalysis/SentimentAnalysisReversedTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
<?php
22

33
use Antoineaugusti\LaravelSentimentAnalysis\SentimentAnalysis;
4+
use PHPUnit\Framework\TestCase;
45

5-
class SentimentAnalysisReversedTest extends PHPUnit_Framework_TestCase
6+
class SentimentAnalysisReversedTest extends TestCase
67
{
78
public $sentiment;
89

9-
public function setUp()
10+
public function setUp(): void
1011
{
1112
parent::setUp();
1213

tests/LaravelSentimentAnalysis/SentimentAnalysisTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
<?php
22

33
use Antoineaugusti\LaravelSentimentAnalysis\SentimentAnalysis;
4+
use PHPUnit\Framework\TestCase;
45

5-
class SentimentAnalysisTest extends PHPUnit_Framework_TestCase
6+
class SentimentAnalysisTest extends TestCase
67
{
78
public $sentiment;
89

9-
public function setUp()
10+
public function setUp(): void
1011
{
1112
parent::setUp();
1213

0 commit comments

Comments
 (0)