Composer "package is abandoned, you should avoid using it" in CI
An abandoned notice is a warning, not an install failure: the maintainer flagged the package as no longer maintained and may suggest a replacement. Install still succeeds, but a strict composer audit can turn abandoned packages into a non-zero exit that fails CI.
What this error means
composer install prints "Package vendor/package is abandoned, you should avoid using it. Use replacement/package instead", and composer audit may exit non-zero for it.
Package fzaninotto/faker is abandoned, you should avoid using it.
Use fakerphp/faker instead.Common causes
A dependency was marked abandoned upstream
The maintainer set "abandoned" in the package metadata, so Composer surfaces it on every install.
A strict audit gate treats abandoned as a failure
composer audit with abandoned-as-error exits non-zero when any installed package is abandoned.
How to fix it
Migrate to the suggested replacement
- Read the "Use X instead" hint in the warning.
- Replace the abandoned package with its maintained successor.
- Relock and re-run.
composer remove fzaninotto/faker
composer require --dev fakerphp/fakerControl how audit treats abandoned packages
Choose whether abandoned packages are a report, a warning, or a failure in your audit step.
composer audit --abandoned=reportHow to prevent it
- Replace abandoned dependencies with maintained forks promptly.
- Decide an explicit
--abandonedpolicy for your audit step. - Review abandoned notices during dependency upgrades.