Skip to content

Releases: Enabel/coding-standard

v1.3.0

Choose a tag to compare

@damienlagae damienlagae released this 04 Sep 11:39

MariaDB by default

init now offers MariaDB only. The database type prompt is gone, and --database changed from a
value option to a negatable flag:

  • before: --database=mariadb --database-version=11.4
  • now: --database-version=11.4 (or --no-database to skip the database entirely)

A init --no-interaction run on a Symfony project now configures a MariaDB database by default;
pass --no-database to opt out.

MySQL and PostgreSQL are no longer proposed for new projects, but ci:add and ci:update still
detect them in an existing compose.yaml and generate the matching pipeline.

Versions aligned on Upsun

Only versions still supported by Upsun are
offered:

Offered Default
MariaDB 12.3, 11.8, 11.4 11.8 (latest LTS — 12.3 is a short-term rolling release)
PHP 8.4, 8.5 8.4

Retired versions were dropped: MariaDB 10.11 / 10.6, MySQL 8.0 / 5.7, PostgreSQL 13 and older, and
PHP 8.3 (end of life). PHP 8.3 stays detectable in existing projects so their CI keeps matching.

Other

  • init is now covered by tests (InitCommandTest).

v1.2.1

Choose a tag to compare

@damienlagae damienlagae released this 13 Mar 11:37
39816b1

Bug fixes

  • Fix Symfony Console 7.x/8.x compatibility by using getDefaultCommands() instead of calling inherited add() in the constructor (#4)
  • Add explicit PHPStan bootstrap to ensure Symfony Console types are resolved correctly
  • Add Symfony version matrix (^7.0, ^8.0) in CI to validate compatibility on both major versions

v1.1.1

Choose a tag to compare

@damienlagae damienlagae released this 26 Feb 13:23
95ca571

Bug fixes

  • GitLab CI: Replace Kaniko with Docker-in-Docker for image builds — Kaniko required manual base64 auth config and was fragile with group-level CI_REGISTRY_PASSWORD variables. Now uses docker:27 + CI_JOB_TOKEN.
  • GitHub Actions: Fix container image reference — env.CI_IMAGE is not supported in container.image context. Now uses job outputs with lowercased repository name.
  • GitHub Actions: Fix MySQL/MariaDB healthcheck — healthcheck.sh --connect --innodb_initialized exhausted retries during init. Now uses mysqladmin ping with shorter interval and more retries.

v1.1.0

Choose a tag to compare

@damienlagae damienlagae released this 26 Feb 09:53
fc2d51d

New features

  • ci:update command — detects existing CI providers (GitLab, GitHub, Azure) and regenerates their configuration files. Supports --php-version, --database, --symfony overrides.
  • ci:add command — adds a new CI provider to an existing project. Use --force to overwrite an existing provider.
  • Enhanced project detection — ProjectDetector now detects CI providers, database type/version from compose.yaml, and tool configuration files (PHP-CS-Fixer, PHPStan, Rector, PHPUnit).

v1.0.0

Choose a tag to compare

@damienlagae damienlagae released this 25 Feb 21:16

Enabel Coding Standard v1.0.0

First stable release. A PHP CLI tool that generates configuration files for PHP/Symfony projects.

Features

  • Code quality tools: PHP-CS-Fixer, PHPStan, Rector, PHPUnit configuration generation
  • CI/CD pipelines: GitLab CI, GitHub Actions, Azure DevOps templates with pcov coverage
  • Development environments: Docker Compose, Makefile, Symfony CLI support
  • Database support: MariaDB, MySQL, PostgreSQL with version selection
  • phpMyAdmin: optional admin UI for MySQL/MariaDB (enabled by default)
  • Foundry & DAMA: optional zenstruck/foundry and dama/doctrine-test-bundle integration (enabled by default)
  • Interactive & non-interactive modes: full CLI option support with --no-interaction
  • Conflict resolution: skip, replace, or ask per-file when regenerating
  • Project auto-detection: detects PHP version, Symfony version, and project name from composer.json

Installation

composer require --dev enabel/coding-standard
vendor/bin/coding-standard init