- drop support for <5.6
- update dependencies
- misc refactoring
- cart can be restored from an empty state without an exception being thrown
- use default bin location
- update dependencies
- modernize project
- misc refactoring
- add
Cart\Store\CookieStore
- rename
Cart\SessionStore
toCart\Storage\SessionStore
- rename
Cart\StorageInterface
toCart\Storage\Store
- rename
Cart\ArrayableInterface
toCart\Arrayable
- add scrutinizer config
- fix scrutinizer recommendations
- misc comments / code cleanup
- rename
Cart\Store\Native\SessionStore
toCart\SessionStore
- add more error checking to
Cart::restore
.Cart\CartRestoreException
is thrown if the cart state cannot be restored due to:- unserializable data
- invalid unserialized data (not an array)
- missing id
- missing items
- invalid id (not a string)
- invalid items (not an array)
- add
Cart\CartItem::getSingleTax
Cart\CartItem::getSinglePrice
andCart\CartItem::getTotalPrice
always return price including tax- add
Cart\CartItem::getSinglePriceExlcudingTax
andCart\CartItem::getTotalPriceExcludingTax
Cart\Cart::total
always return total including tax- add
Cart\Cart::totalExcludingTax
- rewrite
- remove
Cart\Proxy
- remove all static methods from
Cart\Manager
- add
Cart\Facade\Cart
andCart\Facade\Manager
(these replaceCart\Proxy
and static methods inCart\Manager
) - remove
Cart\Storage\Session
- refactor storage implementations - No restrictions on name our placement of storage driver
- misc refactoring + cleaning up
First release