How to fix fzaninotto/faker packagist "This package is abandoned and no longer maintained. No replacement package was suggested." in composer 2.0.11 version and i used php 8.0.0?
Sign in to your account When installing with composer 2 you get warning: Package fzaninotto/faker is abandoned, you should avoid using it. No replacement was suggested.
In CI (Continuous Integration) runs, the problem might be that Composer is not able to detect the version of the root package properly. If it is a git clone it is generally alright and Composer will detect the version of the current branch, but some CIs do shallow clones so that process can fail when testing pull requests and feature branches.
Composer may sometimes fail on some commands with this message: PHP Fatal error: Allowed memory size of XXXXXX bytes exhausted <...> In this case, the PHP memory_limit should be increased. Note: Composer internally increases the memory_limit to 1.5G.
Composer 2.1 2.2 will still come with PHP 5.3 support, but then for Composer 2.2 2.3 we will drop support for everything older than PHP 7.2.5.
The quick way is
composer remove fzaninotto/faker
Then install
composer require fakerphp/faker --dev
You can use the new package faker (fork).
Remove the faker abandoned
composer remove vendor/fzaninotto/faker
Install the new package
composer require fakerphp/faker
And replace it in your composer.json
"require-dev": {
"fakerphp/faker": "^1.13.0",
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With