Composer: Difference between revisions

extract SemVer to new article
 
Line 123: Line 123:
== Semantic Versioning ==
== Semantic Versioning ==


Using Composer correctly means that you understand and follow [https://semver.org/ Semantic Versioning]
Using Composer correctly means that you understand and follow [[Semantic Versioning]]
 
Don't use [https://thephp.cc/articles/the-death-star-version-constraint the "Death Star" version constraint] (since it's not a constraint at all).
 
Don't use '''explicit references''' (specific commit hashes). [https://phabricator.wikimedia.org/T226766 This particular issue] is probably the root of all confusion and disdain for Composer as a dependency manager amongst MediaWiki developers.


== Commands ==
== Commands ==