--ignore-platform-req=php - přidat na konec composer require pokud systém hlásí problém s kompatibilitou php
error: Unknown package has no name defined.
The problem seems to be with parsing vendor/composer/installed.json Once I deleted it - install went well. Even without deleting other files. This one is generated one. You can also simply remove whole vendor/composer directory.