I need to install a single composer package into a project - maatwebsite/excel ~2.1.0
. Each time composer updates, it updates all packages in composer.json. How can I avoid updating packages aside from the excel library?
I have tried the following commands but they don't seem to be working:
composer require maatwebsite/excel ~2.1.0
composer require vendor/maatwebsite/excel ~2.1.0
composer update maatwebsite/excel ~2.1.0
composer update vendor/maatwebsite/excel ~2.1.0
I've also tried using the --lock attribute but that's also not working.
Can anybody tell me what I am doing wrong?