Repository navigation
Releases: Enabel/coding-standard
Release list
v1.3.0
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-databaseto 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
initis now covered by tests (InitCommandTest).
v1.2.1
Bug fixes
- Fix Symfony Console 7.x/8.x compatibility by using
getDefaultCommands()instead of calling inheritedadd()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
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_PASSWORDvariables. Now usesdocker:27+CI_JOB_TOKEN. - GitHub Actions: Fix container image reference —
env.CI_IMAGEis not supported incontainer.imagecontext. Now uses job outputs with lowercased repository name. - GitHub Actions: Fix MySQL/MariaDB healthcheck —
healthcheck.sh --connect --innodb_initializedexhausted retries during init. Now usesmysqladmin pingwith shorter interval and more retries.
v1.1.0
New features
ci:updatecommand — detects existing CI providers (GitLab, GitHub, Azure) and regenerates their configuration files. Supports--php-version,--database,--symfonyoverrides.ci:addcommand — adds a new CI provider to an existing project. Use--forceto overwrite an existing provider.- Enhanced project detection —
ProjectDetectornow detects CI providers, database type/version fromcompose.yaml, and tool configuration files (PHP-CS-Fixer, PHPStan, Rector, PHPUnit).
v1.0.0
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/foundryanddama/doctrine-test-bundleintegration (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