From 6767fdd944ae0230c78b31a1ba5ab5e84f69b965 Mon Sep 17 00:00:00 2001 From: Patrick Henninger Date: Wed, 9 Jan 2019 12:22:33 +0100 Subject: [PATCH] Revert "Removed EOL php versions" This reverts commit 79b6a5144138596e6d7ee7109d87fee631eeef1e. --- .travis.yml | 11 +++-------- README.md | 14 +++++++++++++- composer.json | 12 ++++++------ 3 files changed, 22 insertions(+), 15 deletions(-) diff --git a/.travis.yml b/.travis.yml index dbf74d8..c22deb7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,19 +1,14 @@ language: php php: - - 7.1 + - 5.6 + - 7.0 - 7.2 -env: - matrix: - - PREFER_LOWEST="--prefer-lowest" - - PREFER_LOWEST="" - before_script: - - composer self-update $PREFER_LOWEST + - composer self-update - composer install --prefer-source --no-interaction - script: - vendor/bin/phpunit --coverage-clover=coverage.xml diff --git a/README.md b/README.md index fb8c236..39c9b45 100644 --- a/README.md +++ b/README.md @@ -10,12 +10,24 @@ This is a fork of [Crisane's LaravelShoppingcart](https://github.com/Crinsane/La ## Installation -Install the [package](https://packagist.org/packages/bumbummen99/shoppingcart) through [Composer](http://getcomposer.org/). +Install the package 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 2fd56f0..d2b0ad4 100644 --- a/composer.json +++ b/composer.json @@ -14,14 +14,14 @@ } ], "require": { - "illuminate/support": "5.6.*|5.7.*", - "illuminate/session": "5.6.*|5.7.*", - "illuminate/events": "5.6.*|5.7.*" + "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.*" }, "require-dev": { - "phpunit/phpunit": "^7.0", - "mockery/mockery": "^1.0", - "orchestra/testbench": "^3.6" + "phpunit/phpunit": "~5.0|~6.0|~7.0", + "mockery/mockery": "~0.9.0", + "orchestra/testbench": "~3.1" }, "autoload": { "psr-4": {