Releases: innobraingmbh/composer-fix
Releases · innobraingmbh/composer-fix
Release list
v1.0.0
Immutable
release. Only release title and notes can be modified.
The first stable release of composer-fix — a Composer plugin that fixes known vulnerabilities like npm audit fix. It audits installed packages and updates the ones with published security advisories to a version that is no longer affected.
composer global require innobrain/composer-fix
composer fixFeatures
composer fix— audits installed packages against your repositories' advisories (Packagist by default) and runs a targetedcomposer updateon the affected ones, staying within your existingcomposer.jsonconstraints.--force— rewrites affected root constraints to the lowest safe version before updating, the smallest bump that removes the vulnerability (likenpm audit fix --force). The bump is patch-level (e.g.^5.4.20) so it also excludes the vulnerable lower versions.--dry-run— previews the plan without touchingcomposer.json, the lock file, orvendor/.-w/-W— also update the dependencies of affected packages (--with-dependencies/--with-all-dependencies).--no-dev— filtersrequire-devpackages out of the audit without changing your installed dev/no-dev vendor state.--ignore-unreachable— tolerates repositories that are unreachable or return a non-200.
Highlights
- Pool-filter aware. Both the update and
--forceselection go through Composer's normal pool creation, so a plugin that prunes the pool — such as soak-time — also prunes whatcomposer fixconsiders. If the only safe version is held back,--forcereports it and leavescomposer.jsonunchanged instead of bumping to a version that won't resolve. - CI-friendly exit codes. Exits
0when every advisory is resolved and1when packages remain vulnerable after the update, so pipelines fail on unfixed advisories. - Safe by default. A package whose safe version is out of range is reported as still vulnerable rather than silently changed; a failed
--forceupdate restorescomposer.jsonand the lock file.
Requirements
- PHP 8.1+
- Composer 2.9+
Full Changelog: https://github.com/innobraingmbh/composer-fix/commits/v1.0.0
v0.1.0
Immutable
release. Only release title and notes can be modified.
Full Changelog: https://github.com/innobraingmbh/composer-fix/commits/v0.1.0