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 as stable.
Your dependencies into composer.json will be automatically be changed from "wpackagist-plugin/wordpress-seo":"@stable"
to "wpackagist-plugin/wordpress-seo":"6.2"
1 - Add to Composer
-
From Packagist
- Do
composer require maximeculea/composer-freeze-versions
- Do
-
From Github
- Add into your composer json
{ "type": "vcs", "url": "https://github.com/MaximeCulea/Composer-Freeze-Versions" }
- Include
"maximeculea/composer-freeze-versions": "dev-master"
in your composer file as require - Before use, launch
composer update
- Add into your composer json
Then you can simply launch composer versions-freeze
!
Composer Freeze Versions is licensed under the GPL3+.