diff --git a/.travis.yml b/.travis.yml index c22deb7..dbf74d8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,14 +1,19 @@ language: php php: - - 5.6 - - 7.0 + - 7.1 - 7.2 +env: + matrix: + - PREFER_LOWEST="--prefer-lowest" + - PREFER_LOWEST="" + before_script: - - composer self-update + - composer self-update $PREFER_LOWEST - composer install --prefer-source --no-interaction + script: - vendor/bin/phpunit --coverage-clover=coverage.xml diff --git a/README.md b/README.md index 39c9b45..fb8c236 100644 --- a/README.md +++ b/README.md @@ -10,24 +10,12 @@ This is a fork of [Crisane's LaravelShoppingcart](https://github.com/Crinsane/La ## Installation -Install the package through [Composer](http://getcomposer.org/). +Install the [package](https://packagist.org/packages/bumbummen99/shoppingcart) through [Composer](http://getcomposer.org/). Run the Composer require command from the Terminal: composer require bumbummen99/shoppingcart -If you're using Laravel 5.5, this is all there is to do. - -Should you still be on version 5.4 of Laravel, the final steps for you are to add the service provider of the package and alias the package. To do this open your `config/app.php` file. - -Add a new line to the `providers` array: - - Gloudemans\Shoppingcart\ShoppingcartServiceProvider::class - -And optionally add a new line to the `aliases` array: - - 'Cart' => Gloudemans\Shoppingcart\Facades\Cart::class, - Now you're ready to start using the shoppingcart in your application. **As of version 2 of this package it's possibly to use dependency injection to inject an instance of the Cart class into your controller or other class** diff --git a/composer.json b/composer.json index d2b0ad4..2fd56f0 100644 --- a/composer.json +++ b/composer.json @@ -14,14 +14,14 @@ } ], "require": { - "illuminate/support": "5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*", - "illuminate/session": "5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*", - "illuminate/events": "5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*" + "illuminate/support": "5.6.*|5.7.*", + "illuminate/session": "5.6.*|5.7.*", + "illuminate/events": "5.6.*|5.7.*" }, "require-dev": { - "phpunit/phpunit": "~5.0|~6.0|~7.0", - "mockery/mockery": "~0.9.0", - "orchestra/testbench": "~3.1" + "phpunit/phpunit": "^7.0", + "mockery/mockery": "^1.0", + "orchestra/testbench": "^3.6" }, "autoload": { "psr-4": {