Download the PHP package dcblogdev/phpcart without Composer
On this page you can find all versions of the php package dcblogdev/phpcart. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dcblogdev/phpcart
More information about dcblogdev/phpcart
Files in dcblogdev/phpcart
Package phpcart
Short Description Simple framework agnostic shopping cart
License MIT
Homepage https://github.com/dcblogdev/phpcart
Informations about the package phpcart
PHPCart
Simple framework agnostic shopping cart.
Originally from https://github.com/anam-hossain/phpcart I've released this under my own namespace as I needed support for Laravel 7/8, at the time of writing this there is an open PR on the original repo which has not been responded to.
Features
- Simple API
- Support multiple cart instances
- Framework agnostic
Requirements
- PHP 7.3+
Installation
PHPCart is available via Composer
Usage
Add Item
The add method required id
, name
, price
and quantity
keys. However, you can pass any data that your application required.
Update Item
Update quantity
Update price
Remove an Item
Get all Items
Get an Item
Determining if an Item exists in the cart
Get the total number of items in the cart
Get the total quantities of items in the cart
Total sum
Empty the cart
Multiple carts
PHPCart supports multiple cart instances, so that you can have as many shopping cart instances on the same page as you want without any conflicts.
All versions of phpcart with dependencies
illuminate/support Version 5.5.x|5.6.x|5.7.x|5.8.x|6.x|7.x|8.x|9.x|10.x