Skip to content

A clean shopping cart implementation for Laravel

License

Notifications You must be signed in to change notification settings

LPMatrix/cartie

Repository files navigation

Cartie

Latest Version on Packagist Build Status License Total Downloads Made in Nigeria

A clean shopping cart implementation for Laravel. This package uses PSR-4 standard

Installation

You can install the package via composer:

composer require lpmatrix/cartie

Usage

Cartie::add()

Cartie::add(['id'=>1, 'name'=>'Airforce', 'price'=>150, 'quantity'=>1]);

Cartie::update()

Cartie::update(['rowid'=>'c9f0f895fb98ab9159f51fd0297e236d', 'quantity'=>2]);

Cartie::remove()

Cartie::remove('c9f0f895fb98ab9159f51fd0297e236d');

Cartie::clear()

Cartie::clear();

Cartie::contents()

Cartie::contents();

Cartie::totalItems()

Cartie::totalItems();

Cartie::totalPrice()

Cartie::totalPrice();

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

A clean shopping cart implementation for Laravel

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages