Freeze versions of your composer's dependencies.
This command is especially useful while making a site live. It allows you to grab latest versions of your composer.lock which you tested you site against. If you would like to go back to a staging status, use another command : Make Stable to set versions stable.
Your dependencies into composer.json will be automatically be changed from :
"wpackagist-plugin/wordpress-seo":"@stable"
into :
"wpackagist-plugin/wordpress-seo":"6.2"
- Make
composer require --dev "beapi/composer-freeze-version": "dev-master"
Then you can simply launch composer freeze-version
!
Created by Be API, the French WordPress leader agency since 2009. Based in Paris, we are more than 30 people and always hiring some fun and talented guys. So we will be pleased to work with you.
This plugin is only maintained, which means we do not guarantee some free support. If you identify any errors or have an idea for improving this script, feel free to open an issue. Please provide as much info as needed in order to help us resolving / approve your request. And .. be patient :)
If you really like what we do or want to thank us for our quick work, feel free to donate as much as you want / can, even 1€ is a great gift for buying cofee :)
Composer Freeze Version is licensed under the GPLv3 or later.