GreXXL no, composer remove
does not take a version parameter, just a package name.
If you run that command, Composer will say:
fof/user-bio:* is not required in your composer.json and has not been removed
Because it assumes the full text is the package name.
Correct command to remove is just composer remove fof/user-bio
Only require
command can take a version as a parameter, since it's the only one that will add or modify a line to composer.json
. update
command does not modify composer.json
, and remove
command will completely remove a package by name.
Since you can't have multiple versions of a package installed at once (unlike some other package managers), it doesn't make sense to specify a version when removing.