yceruto/bundle-flex
A Symfony bundle that brings Flex-style automation to bundle setup, simplifying installation, service registration, and configuration with sensible defaults so third-party bundles integrate faster with less boilerplate.
Architecture fit
yceruto/bundle-flex is a Composer plugin for Symfony bundles. It lets a bundle ship its own Flex-style recipe so that composer require auto-applies configuration (writes config/packages/*.yaml, registers the bundle in bundles.php, adds routes/env vars) without waiting for a recipe to land in symfony/recipes-contrib.extra.laravel.providers / aliases) plus php artisan vendor:publish. Direct architectural fit for a Laravel codebase is effectively zero.symfony/flex. In a polyglot PHP estate, that is a narrow, non-core slice.Integration feasibility
config.allow-plugins), which puts it in our highest trust tier: install-time arbitrary code execution with full filesystem and process privileges.symfony/flex being present and on Flex's recipe application pipeline, which is not a stable public API.composer install --no-plugins, --no-scripts, CI caches, Docker/immutable image builds, and read-only filesystems.Technical risk
symfony/flex release can break installs across the whole team and every CI job.config/, and hard-to-reproduce CI failures.Key questions
symfony/flex constraints?allow-plugins policy, and what is the review path for install-time code execution?vendor:publish, or a checked-in private recipe repo for Symfony?Stack fit
vendor:publish. Adopting it would create a parallel, undocumented configuration mechanism.Migration path
allow-plugins, add to require, move recipe YAML into the bundle, then diff the resulting config/ and bundles.php against expectations.Compatibility
--no-plugins so we can guarantee a reproducible fallback.Sequencing
--no-plugins control run.Maintenance
composer install for every engineer and every CI job simultaneously — the worst possible blast radius for a dependency this small.Support
Scaling
Failure modes
--no-scripts workaround also skips the configuration.Ramp-up
composer install mutates tracked files — a behavior most teams deliberately engineer away.Position: Do not adopt. Treat Bundle Flex as a reference implementation for "self-configuring packages"; if that need materializes, build a minimal in-house equivalent or lean on Laravel's native package discovery, with committed and deterministic output as a hard requirement.
How can I help you explore Laravel packages today?