Skip to content

MaximeCulea/Composer-Freeze-Versions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Composer Freeze Versions

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.

What?

Your dependencies into composer.json will be automatically be changed from "wpackagist-plugin/wordpress-seo":"@stable" to "wpackagist-plugin/wordpress-seo":"6.2"

See how it works

How?

1 - Add to Composer

  • From Packagist

    • Do composer require maximeculea/composer-freeze-versions
  • 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

2 - Run command

Then you can simply launch composer versions-freeze!

License

Composer Freeze Versions is licensed under the GPL3+.