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
Variation Bundle

Variation Bundle Laravel Package

sylius/variation-bundle

Sylius Variation Bundle adds product variation support to the Sylius e-commerce platform, providing models and logic for variants and options so stores can sell configurable products with different sizes, colors, and other attributes.

View on GitHub
Deep Wiki
Context7

[READ-ONLY] Managing options and variations of PHP business entities.

Frequently asked questions about Variation Bundle
Can I install sylius/variation-bundle in a Laravel project with Composer?
Not realistically. It is a Symfony bundle that expects Symfony's kernel and bundle registration, Doctrine ORM mappings, and Sylius's resource registry, so Composer will pull in dependency trees that conflict with a typical Laravel stack. Against Laravel it should be treated as reference material, not an installable dependency.
Is sylius/variation-bundle a Laravel package?
No. It is an archived, read-only Symfony bundle split from the Sylius monorepo, and the original variation bundle was folded into Sylius ProductBundle at Sylius 1.0. It does not provide Laravel service providers, facades, config files, or Laravel-native models.
What does sylius/variation-bundle actually provide?
It provides the domain model and logic for product options, option values, and variants in Sylius, including the options-to-option-values-to-variants shape and a Cartesian variant generation routine. In modern Sylius those concepts live in sylius/product as ProductOption, ProductOptionValue, and ProductVariant. The bundle itself is a historical subtree split, not a standalone component.
Is sylius/variation-bundle maintained?
No. The repository is archived and read-only, with no security patches, compatibility updates, or issue triage. Its versioning tracked Sylius releases rather than independent semantic versioning. Treat it as frozen historical code.
Does sylius/variation-bundle work with current Laravel or Symfony versions?
No for Laravel, and it is stale for current Symfony. Its PHP, Symfony, and Doctrine constraints are frozen at the archive date, so expect dependency resolution failures in Laravel and conflicts or manual constraint overrides in Symfony. For Symfony or Sylius projects, use the maintained sylius/sylius distribution instead.
How do I build product options and variants natively in Laravel?
Model an options table, an option_values table associated with products, and a variants table that stores a stable signature of its option-value tuple. Add a generation service that expands the Cartesian product while reusing existing variants that already match a combination. That is a small native port sized to your actual requirement, and it gives you full ownership of security and edge cases.
What is the best alternative to sylius/variation-bundle for Laravel?
There is no drop-in Laravel alternative in this repository; the realistic option is an in-house implementation of the same domain model. If your target is genuinely Symfony or Sylius, adopt sylius/sylius and skip this archived split. The bundle is best used as a blueprint, not a dependency.
Can I use sylius/variation-bundle as a reference implementation?
Yes, that is its most sensible use against a Laravel target. The model is small, well-shaped, and battle-tested by a mature commerce platform, and the variant generation logic is the most valuable part to study. Harvest the entity shapes and generation approach, then discard the Symfony bundle glue.
What are the risks of depending on sylius/variation-bundle in production?
The main risks are the archived status, lack of security patches, stale framework constraints, and a Symfony/Sylius runtime assumption that does not fit Laravel. The repository also has very low standalone adoption, so it has little field validation as an independent artifact. As a dependency the risk is high; as reference material it is low.
Does sylius/variation-bundle have a license I can reuse?
It carries an inherited MIT license, which is generally permissive, but you should confirm attribution requirements before copying code. If you port the model, keep the license and attribution review in your build checklist. Legal review is still advisable for any code you reuse.
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.
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource