Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix error abandoned fzaninotto/faker packagist in composer 2.0.11 version and i used php 8.0.0?

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?

like image 568
Zach Phoenix Avatar asked Mar 04 '21 18:03

Zach Phoenix


People also ask

What happened to fzaninotto/Faker?

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.

Why does composer fail to detect the root package version?

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.

Why does composer fail on some commands?

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.

What version of PHP does composer 2 support?

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.


2 Answers

The quick way is

composer remove fzaninotto/faker

Then install

composer require fakerphp/faker --dev
like image 146
Kidd Tang Avatar answered Oct 22 '22 04:10

Kidd Tang


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",
}
like image 37
Rodrigo Maciel Avatar answered Oct 22 '22 02:10

Rodrigo Maciel