Skip to content
CAI
Software that uses CAICheck a score

symfony/flex

52.6

Adequate · 17 November 2026

6.6k

lines of production code

PHP

primary language

5

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Introduce Configurator system for recipe management

Symfony Flex now uses a dedicated Configurator system to manage recipe installations, updates, and removals. This change introduces a suite of specialized configurators—such as BundlesConfigurator for managing bundles.php, ContainerConfigurator for services.yaml parameters, DotenvConfigurator for .env files, and DockerComposeConfigurator/DockerfileConfigurator for Docker support—alongside base classes like AbstractConfigurator and AddLinesConfigurator. This architecture centralizes how recipes modify project files, ensuring consistent handling of configuration updates and unconfigurations across different file types.

src/Configurator · high confidence

Introduce Unpack operation and result models

Added the \Operation\ and \Result\ classes in the \src/Unpack\ namespace to support the new Composer package unpacking capability. The \Operation\ class manages the configuration for whether packages should be unpacked and sorted, while the \Result\ class tracks which packages have been successfully unpacked and which are required, ensuring the command always has at least one package to process.

src/Unpack · high confidence

New CLI commands for environment dumping and recipe management

This change introduces four new console commands to \src/Command\: \symfony:dump-env\ (aliased as \dump-env\) compiles \.env\ files into a PHP array in \.env.local.php\ for faster environment loading, supporting an \--empty\ flag to ignore existing content; \symfony:recipes:install\ (aliased as \sync-recipes\ and \fix-recipes\) installs or reinstalls recipes for existing packages, with options to force overwrite (\--force\), reset to initial state (\--reset\), or auto-confirm (\--yes\); \symfony:recipes\ lists available or outdated recipes; and \symfony:recipes:update\ applies patches to update installed recipes to their latest versions, handling conflicts and generating changelogs.

src/Command · high confidence

Behavioural changes

Improved recipe update logic prevents deletion of files still in use

The recipe update system now checks if files marked for deletion by a recipe are still referenced by other installed recipes before removing them. If a file is locked by another recipe, it is preserved and a warning is displayed to the user, preventing accidental loss of functionality. Additionally, the update process now correctly handles modified files that have been deleted in the user's project by excluding their patches from the final diff, and ensures patch files end with a blank line for valid git application.

src/Update · high confidence

Introduction of Symfony Flex v2 core architecture

This change introduces the core classes for Symfony Flex v2, including the main plugin entry point (Flex.php), the recipe downloader (Downloader.php), and the configurator system (Configurator.php) that manages recipe installation and updates. It adds a new Lock class to manage the symfony.lock file, a PackageFilter to handle version constraints, and a PackageJsonSynchronizer to keep frontend dependencies in sync. The update process is now driven by a dedicated UpdateEvent and an InformationOperation class, allowing for more granular control over recipe updates and version resolution.

src · high confidence

Repository initialization and configuration standardization

The repository has been initialized with standard configuration files to support development and distribution. A .gitattributes file is added to exclude development-specific files (such as .github, .travis.yml, and tests) from exported archives. A .php-cs-fixer.dist.php file establishes code style rules based on the Symfony standard. A LICENSE file (MIT) and a README.md file are added to define usage terms and provide project documentation. Additionally, a phpunit.xml.dist configuration file is introduced to define the test suite and source coverage, and the obsolete SymfonyStartPlugin.php file is removed.

(repo-wide) · high confidence

Test coverage

1 commit adding/updating tests in tests/Fixtures/vendor/acme/intermediate-bundle, tests/Fixtures/vendor/acme/intermediate-library; Added test coverage for Flex configurators; Added test fixtures for Sylius plugins; Added test fixtures for the recipe update system; Added test suite for Symfony Flex core components; Added tests for dump-env and recipe management commands; Added unit tests for the recipe update system.

Dependencies

Symfony Flex v2: PHP 8.1+ requirement and Composer 2.1+ upgrade

The Symfony Flex package has been upgraded to version 2, raising the minimum PHP version to 8.1 and requiring Composer 2.1 or later. This update also renames the package from 'symfony/symfony-start-composer' to 'symfony/flex', updates the autoloading to PSR-4 under the 'Symfony\\Flex' namespace, and bumps development dependencies including PHPUnit to v12.4 and Symfony components (dotenv, filesystem, process) to versions 6.4, 7.4, and 8.0. Additionally, test fixtures for package.json synchronization and recipe updates have been added to support these changes.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 53.8 → 52.6 (-1.2)
  • Rubric changed (rubric-2026.11.2 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 52.1 → 51.6 (-0.5)
  • Architecture 100.0 → 89.6 (-10.4)
  • Maturity 43.8 → 43.2 (-0.6)
  • Readiness 51.2 → 51.1 (-0.1)
  • Security 100.0 → 100.0 (0.0)

Resolved (4)

  • Hotspot: src/Configurator/EnvConfigurator.php (src/Configurator/EnvConfigurator.php)
  • Off-boarding risk: anonymized user #1
  • Scanner failed to run — not a clean result
  • Scanner failed to run — not a clean result

New (15)

  • Circular dependency (src/Flex.php)
  • Edited copies of one member (3 members, 12+ corresponding lines) (src/Configurator/DockerfileConfigurator.php)
  • Edited copies of one member (3 members, 24+ corresponding lines) (src/Configurator/DockerfileConfigurator.php)
  • Edited copy of a member (10 corresponding lines) (src/Flex.php)
  • Edited copy of a member (14 corresponding lines) (src/Configurator/EnvConfigurator.php)
  • Edited copy of a member (20 corresponding lines) (src/Command/RecipesCommand.php)
  • Edited copy of a member (3 corresponding lines) (src/Configurator/ComposerCommandsConfigurator.php)
  • Off the main sequence: src/Event
  • Off the main sequence: src/Unpack
  • Off the main sequence: src/Update
  • Off-boarding risk: anonymized user #1
  • Orphaned file (src/Configurator/AbstractConfigurator.php)
  • Orphaned file (src/Configurator/CopyFromPackageConfigurator.php)
  • Orphaned file (src/Recipe.php)
  • Orphaned file (src/SymfonyBundle.php)

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

symfony/flex was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 17 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 3d37e8597c2290c095433b4260563986f857a274 — the exact code this score is about.
  • Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.85+preprod-eba6548ac50f.