Skip to content
webspecPublic
forked from cartalyst/cart

About

Shopping cart package featuring multiple cart instances, item attributes and Conditions.

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

Cart

Build Status

A framework agnostic shopping cart package featuring multiple cart instances, item attributes and Conditions.

Part of the Cartalyst Arsenal & licensed Cartalyst PSL. Code well, rock on.

Version Matrix

Version Laravel PHP Version
9.x 12.x, 13.x >= 8.3
8.x 11.x >= 8.2
7.x 10.x >= 8.1
6.x 9.x >= 8.0
5.x 8.x >= 7.3
4.x 7.x >= 7.2.5
3.x 6.x >= 7.2
2.x 5.0 - 5.8 >= 5.4.0
1.x 4.1 - 4.2 >= 5.4.0

Documentation

Laravel 13 dependencies

This fork requires Webspec's Conditions fork version 6.1 or later, which supports laravel/serializable-closure 2.x for Laravel 13.

Add both fork repositories to your application's root composer.json, before any Cartalyst Composer repository. Composer does not load repository declarations from dependencies:

"repositories": [
    {
        "type": "vcs",
        "url": "https://github.com/webspec/cart"
    },
    {
        "type": "vcs",
        "url": "https://github.com/webspec/conditions"
    }
]

The package names remain cartalyst/cart and cartalyst/conditions.

Laravel 13 sessions

The cart stores collection and condition objects in the session. Laravel 13 applications must use PHP session serialization by setting the following in config/session.php:

'serialization' => 'php',

Laravel 13's default JSON serialization does not preserve these objects between requests. If configuration is cached, run php artisan config:cache after changing this setting.

Reader-friendly documentation can be found here.

Using the package, but you're stuck? Found a bug? Have a question or suggestion for improving this package? Feel free to create an issue on GitHub, we'll try to address it as soon as possible.

Contributing

Thank you for your interest, here are some of the many ways to contribute.

Security

If you discover any security related issues, please email help@cartalyst.com instead of using the issue tracker.

License

This software is released under the Cartalyst PSL License.

About

Shopping cart package featuring multiple cart instances, item attributes and Conditions.

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages