A flexible and lightweight Shopping Cart manager.
The first step is using composer to install the package and automatically update your composer.json
file, you can do this by running:
not released yet
You need to update your application configuration in order to register the package so it can be loaded by Laravel, just update your config/app.php
file adding the following code at the end of your 'providers'
section:
config/app.php
//...
'providers' => [
// other providers ommited
ShoppingCart\Providers\ShoppingCartServiceProvider::class,
],
//...
In order to use the ShoppingCart
facade, you need to register it on the config/app.php
file, you can do that the following way:
//...
'aliases' => [
// other Facades ommited
'ShoppingCart' => ShoppingCart\Facades\ShoppingCart::class
],
//...
In your terminal type
php artisan vendor:publish
or
php artisan vendor:publish --provider="ShoppingCart\Providers\ShoppingCartServiceProvider"
To run tests
phpunit
To run the codesniffer coverage
composer cs
or
composer run-script cs