Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Cart Laravel Package

leaphly/cart

Leaphly Cart is a PHP shopping cart component for e-commerce applications, offering cart and item models, quantity and pricing logic, extensible storage, and customizable cart workflows. It integrates with Symfony and helps developers build flexible cart features.

Deep Wiki
Context7

Leaphly: pure php cart library. DEPRECATED

Frequently asked questions about Cart
What is leaphly/cart and what does it do?
Leaphly Cart is a lightweight, framework-agnostic PHP component that provides Cart and CartItem models, quantity management, and basic price calculations for e-commerce applications. It is designed to keep cart logic independent of frameworks and storage layers, with extensibility for custom products, pricing, and persistence. It is not a Laravel-specific package and should be treated as a legacy PHP domain component.
Is leaphly/cart a Laravel package?
No. Leaphly Cart is a pure PHP component from the PHP 5 era and does not provide Laravel service providers, facades, configuration files, Eloquent models, events, validation, or container-aware services. You would need an adapter or anti-corruption layer to map its cart concepts into a modern Laravel application.
Can I install leaphly/cart with Composer in a Laravel app?
It is a Composer package, but the repository location is unknown and the release date is old, so installation and dependency resolution should be validated in an isolated sandbox first. Expect outdated Composer constraints and potential conflicts with modern Laravel and PHP packages. Direct integration is not recommended without compatibility checks and an isolation plan.
Does leaphly/cart support Laravel 10, Laravel 11, or PHP 8?
There is no evidence that it supports modern Laravel versions or PHP 8+. The package predates current Laravel and PHP standards, so PHP runtime incompatibility and Composer dependency conflicts are realistic risks. Run a time-boxed compatibility spike before making any commitment.
Is leaphly/cart maintained or deprecated?
The evaluation notes describe it as explicitly deprecated, with low adoption signals, no recent releases, and no visible maintenance. The canonical repository and license are also unclear, which blocks due diligence. Treat it as high-risk legacy code rather than a maintained production dependency.
How do I integrate leaphly/cart with Laravel Eloquent models?
There is no built-in Eloquent integration. A safer approach is to wrap the library behind an internal cart interface and adapter that maps its Cart and CartItem concepts to Laravel domain models and services. Avoid exposing it directly throughout your application, and build characterization tests around persistence and pricing behavior.
Does leaphly/cart handle tax, VAT, currency, and rounding correctly?
The overview mentions currency and tax or VAT support, but the behavior is undocumented in the provided context. Pricing, tax, currency conversion, rounding, discounts, and promotions are high-risk areas for silent errors. You must create characterization tests for these calculations before relying on the component.
Is leaphly/cart safe for production e-commerce use?
It carries high technical risk for production use because it is deprecated, has no visible maintenance, and may have unpatched security issues or PHP 8+ incompatibilities. There are also unknowns around tests, CI, license, and documented edge cases. Adoption would require a formal exception, isolation, and named ownership for a fork.
What are good alternatives to leaphly/cart for Laravel?
Prefer a maintained Laravel commerce or cart package, or build a thin in-house cart domain that fits Laravel's Eloquent, session, queue, and validation conventions. Use leaphly/cart only as a reference for domain modeling or migration comparison. If legacy code already depends on it, use a strangler pattern and migrate incrementally.
What should I check before adopting or forking leaphly/cart?
Confirm the license, canonical repository, PHP version support, dependency ranges, known vulnerabilities, test coverage, and documentation. Clarify its cart persistence assumptions and how it handles tax, currency, rounding, discounts, and inventory. If you fork it, assign ownership, CI, tests, a release process, and a security review plan.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo
bernskioldmedia/laravel-harvest
bernskiold/laravel-data-scrubber
bernskiold/laravel-currency-converter
bernskiold/laravel-campaign-monitor
bernskioldmedia/laravel-autotranslate
siberfx/telegram-bot
roy-sandip/laravel-view-extended
gregsphotography/site-builder-core
roy-sandip/laravel-view
anodyne/blade-fluentui-icons
webx-ui/module-catalog-collections