lpmatrix/cartie

A clean shopping cart implementation for Laravel

1.1.2 2021-04-30 11:58 UTC

This package is auto-updated.

Last update: 2024-05-04 17:37:09 UTC


README

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 mubaraqsanusi908@gmail.com instead of using the issue tracker.

Credits

License

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