Download the PHP package renatoandradeweb/modern-cart without Composer
On this page you can find all versions of the php package renatoandradeweb/modern-cart. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download renatoandradeweb/modern-cart
More information about renatoandradeweb/modern-cart
Files in renatoandradeweb/modern-cart
Download renatoandradeweb/modern-cart
More information about renatoandradeweb/modern-cart
Files in renatoandradeweb/modern-cart
Vendor renatoandradeweb
Package modern-cart
Short Description Modern PHP 8+ shopping cart library with multiple storage backends and type safety
License MIT
Homepage https://github.com/renatoandradeweb/modern-cart
Package modern-cart
Short Description Modern PHP 8+ shopping cart library with multiple storage backends and type safety
License MIT
Homepage https://github.com/renatoandradeweb/modern-cart
Please rate this library. Is it a good library?
Informations about the package modern-cart
Modern Cart ๐
A modern, type-safe shopping cart library for PHP 8+ with multiple storage backends and a fluent API.
โจ Features
- ๐ง PHP 8+ Features: Full type declarations, property promotion, match expressions
- ๐ก๏ธ Type Safety: Strict typing throughout with PHPStan level 9 compliance
- ๐พ Multiple Storage Backends: Session, Cookie, File, Memory storage
- ๐ Fluent API: Chainable methods for better developer experience
- ๐ฆ Zero Dependencies: No external dependencies required
- ๐งช Fully Tested: 100% code coverage with PHPUnit
- ๐ Well Documented: Comprehensive documentation with examples
๐ Requirements
- PHP 8.0 or higher
- Session support (for SessionStore)
- File system access (for FileStore)
๐ Installation
Install via Composer:
๐ฏ Quick Start
๐ Usage
Creating a Cart
Working with Cart Items
Cart Operations
Cart Information
Persistence
Advanced Features
๐จ Custom Storage Backend
Implement the Store
interface to create custom storage:
๐งช Testing
๐ Error Handling
The library uses specific exceptions for different error conditions:
๐ง Configuration
Session Store Options
Cookie Store Options
File Store Options
๐ญ Migration from Legacy Cart
If migrating from the original library:
๐ค Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Make your changes
- Run quality checks (
composer quality
) - Commit your changes (
git commit -am 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Create a Pull Request
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Credits
- Original cart library inspiration
- PHP 8+ modern practices
- Community feedback and contributions
๐ Support
- ๐ง Email: [email protected]
- ๐ฌ Discussions: GitHub Discussions
- ๐ Issues: GitHub Issues
All versions of modern-cart with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0
The package renatoandradeweb/modern-cart contains the following files
Loading the files please wait ....