PHPackages                             funayaki/cakephp-cart - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. funayaki/cakephp-cart

ActiveCakephp-plugin[Framework](/categories/framework)

funayaki/cakephp-cart
=====================

Cart plugin for CakePHP

0.0.1(7y ago)025[3 issues](https://github.com/funayaki/cakephp-cart/issues)PHPPHP &gt;=5.6

Since Dec 19Pushed 7y ago1 watchersCompare

[ Source](https://github.com/funayaki/cakephp-cart)[ Packagist](https://packagist.org/packages/funayaki/cakephp-cart)[ RSS](/packages/funayaki-cakephp-cart/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (2)Used By (0)

[![Build Status](https://camo.githubusercontent.com/ec512224f2274822ee9c63d14886005b337b7ff97c5739ea2d2779fee0c78589/68747470733a2f2f7472617669732d63692e6f72672f66756e6179616b692f63616b657068702d636172742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/funayaki/cakephp-cart)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/459957c211e1b225d2c75946c411d6a9aca9dd7bd5ba68ab22f2349d933883ba/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f66756e6179616b692f63616b657068702d636172742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/funayaki/cakephp-cart/?branch=master)[![codecov](https://camo.githubusercontent.com/a87597d61b549ede3264c1eafb807233386d51f7c4c4ddb85da91ada97cf5284/68747470733a2f2f636f6465636f762e696f2f67682f66756e6179616b692f63616b657068702d636172742f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/funayaki/cakephp-cart)

Cart plugin for CakePHP
=======================

[](#cart-plugin-for-cakephp)

Requirements
------------

[](#requirements)

- CakePHP 3.5.0 or later

Installation
------------

[](#installation)

You can install this plugin into your CakePHP application using [composer](http://getcomposer.org).

The recommended way to install composer packages is:

```
composer require funayaki/cakephp-cart
```

Implement EntityBuyableAwareInterface:

```
class Item extends Entity implements EntityBuyableAwareInterface
{

    public function getPrice()
    {
        return $this->price;
    }

    public function getBuyableLimit()
    {
        return INF;
    }
}
```

Load CartComponent:

```
