devraeph / laracart
A simple cart for Laravel
Fund package maintenance!
2.0.2
2022-06-15 14:26 UTC
Requires
- php: ~7.3 || ~7.4 || ~8.0
- ext-intl: *
- illuminate/events: ~5.5.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0|^9.0
- illuminate/session: ~5.5.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0|^9.0
- illuminate/support: ~5.5.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0|^9.0
Requires (Dev)
- codeclimate/php-test-reporter: dev-master
- mockery/mockery: ^1.0
- orchestra/database: ~3.5.0|~3.7.0|~3.8.0
- orchestra/testbench: ~3.5.0|~3.7.0|~3.8.0
- phpunit/phpunit: ^7.5
This package is auto-updated.
Last update: 2026-05-15 23:09:00 UTC
README
Forked and edited with some rounding related stuff for personal needs
LaraCart - Laravel Shopping Cart Package (http://laracart.lukepolo.com)
Features
- Coupons
- Session Based System
- Cross Device Support
- Multiple cart instances
- Fees such as a delivery fee
- Taxation on a the item level
- Prices display currency and locale
- Endless item chaining for complex systems
- Totals of all items within the item chains
- Item Model Relation at a global and item level
- Quickly insert items with your own item models
Laravel compatibility
| Laravel | laracart |
|---|---|
| 5.1 | 5.2 | 5.3 | 1.1 | 1.2 |
| 5.4+ | 1.* |
Installation
Install the package through Composer. Edit your project's composer.json file by adding:
{
"require": {
........,
"lukepolo/laracart": "1.11.*"
}
}
If using 5.4 you will need to include the service providers / facade in app/config/app.php:
LukePOLO\LaraCart\LaraCartServiceProvider::class,
Include the Facade :
'LaraCart' => LukePOLO\LaraCart\Facades\LaraCart::class,
Copy over the configuration file by running the command:
php artisan vendor:publish --provider='LukePOLO\LaraCart\LaraCartServiceProvider'
Documentation
To Contribute to documentation use this repo :
https://github.com/lukepolo/laracart-docs
License
MIT