Whenever I try to add a new package using composer like
\"composer require packagename/package\"
or use \"composer.phar update\"
, I am getting all the
One workaround is to use replace property, however there isn't dedicated command for that, so you can run composer require foo/bar
as usual (which will create composer.json
), then add a new replace
section for the package to ignore.
Or create composer.json
file on your own. Here is the example:
{
"require": {
"radic/tmp-underscore-php": "1.2.0"
},
"replace": {
"patchwork/utf8": "*"
}
}
Once you run composer install
, the required package patchwork/utf8
won't be downloaded.