Download the PHP package simpavl/zf3-shoppingcart without Composer

On this page you can find all versions of the php package simpavl/zf3-shoppingcart. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package zf3-shoppingcart

ShoppingCart

This model is a simple ZF2 Shopping Cart solution. Provide basic functionality to create and modify Shopping Cart with any content in it. Easy to extend, just create your own Cart Entity and push it during Cart initialisation.

Inspired by

I was inspired to create the ShoppingCart by great job of Vincenzo Provenza and Concetto Vecchio (http://github.com/vikey89/ZendCart). Keeped the same idea behind but made it more flexible, easier to extend and simplier to change.

Zend Framework 3

This module was forked and repaired for zf3

Installation

For the installation uses composer composer. Add this project in your composer.json:

"require": {
    "simpavl/zf3-shoppingcart": "dev-master"
}

Post Installation

Configuration:

Examples

Insert

You can insert as many items to the cart as you want. Each entry in cart will have unique token to work with. Example with one product:

Example with 2 products:

Remove

Destroy

Erase Shopping Cart completely.

Cart

Get all content of Cart.

Total Sum

Total Items

Example in controller

How to change/extend Shopping Cart

Provided Shopping Cart Entity is really basic one. You can change the structure of it. For example, if you need to add options to each item in the cart or to provide discount field and so on. What you should do:

FunctionsReference

Function Description
$this->ShoppingCart()->insert();Add item(s) to cart.
$this->ShoppingCart()->remove();Delete the item from the cart.
$this->ShoppingCart()->destroy();Delete all items from the cart.
$this->ShoppingCart()->cart();Extracts all items from the cart.
$this->ShoppingCart()->total_sum();Counts the total sum of all items in the cart.
$this->ShoppingCart()->total_items();Counts the total number of all items in the cart.

Contributors

Aleksander Cyrkulewski - [email protected]


All versions of zf3-shoppingcart with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
zendframework/zendframework Version 2.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package simpavl/zf3-shoppingcart contains the following files

Loading the files please wait ....