sylius/cart-bundle
Sylius CartBundle provides flexible shopping cart functionality for Symfony and Sylius applications, including cart and cart item models, add/update/remove operations, totals calculation, and integration with ecommerce workflows.
Architecture fit
sylius/cart-bundle is a Symfony bundle, not a Laravel package. It presumes Symfony's DI container, EventDispatcher, Doctrine ORM, Form component, and Sylius core abstractions (Order/OrderItem, state machine, processor pipeline). Laravel has no bundle system, and its container, Eloquent, HTTP kernel, and Blade stack provide no mapping to those extension points.Cart, CartItem, a session-backed CartProvider, ItemResolver implementations, and a configurable totals-processor pipeline — is separable and portable as a design, not as code.Integration feasibility
Sylius/Sylius; the functionality now lives in Sylius\Component\Order. Composer may still resolve it, but there is no maintained release line, no security process, and zero dependents — no community validation to lean on.Technical risk
Key questions
Stack fit
Migration path
Cart/CartItem models, a cart provider bound as a scoped singleton, cart item resolvers that normalize user input into a line, and a cart-operation pipeline expressed via Laravel Pipeline and events.morphs buyable relation, a uniqueness constraint on (cart_id, buyable_type, buyable_id), and session/user keys indexed for cart resolution.Sylius/Sylius monorepo and expose the Shop API rather than pinning the legacy bundle.Compatibility
Sequencing
Maintenance
Support
Scaling
Failure modes
Ramp-up
How can I help you explore Laravel packages today?