Download the PHP package anam/phpcart without Composer
On this page you can find all versions of the php package anam/phpcart. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor anam
Package phpcart
Short Description Simple framework agnostic shopping cart
License MIT
Homepage https://github.com/anam-hossain/phpcart
Package phpcart
Short Description Simple framework agnostic shopping cart
License MIT
Homepage https://github.com/anam-hossain/phpcart
Please rate this library. Is it a good library?
Informations about the package phpcart
PHPCart
Simple framework agnostic shopping cart.
Features
- Simple API
- Support multiple cart instances
- Framework agnostic
Requirements
- PHP 5.4+
Installation
PHPCart is available via Composer
Laravel Integrations
Use the following dedicated laravel package for PHPCart.
https://github.com/anam-hossain/lara-phpcart
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
PHP Build Version
Package Version
Requires
php Version
>=5.4.0
symfony/http-foundation Version ~3.0|~4.0
illuminate/support Version ~5.0
symfony/http-foundation Version ~3.0|~4.0
illuminate/support Version ~5.0
The package anam/phpcart contains the following files
Loading the files please wait ....