I think there's a version control file, I don't update that often.
Jul 17, 2016
16
Level 14
How does Composer know the Patch Version of my Package?
I've always been confused by this.
Let's take the laravel/framework repository as an example. Obviously, each branch denotes the Major and Minor versions (X.Y i.e. 5.1, 5.2, etc.), but how are the Patch versions determined (X.Y.Z i.e. 5.1.40, 5.2.14, etc.)?
I'm curious about this because I'm already working on creating my own package, and I'd like to specify my Patch versions.
Level 54
See: https://packagist.org/about
New versions of your package are automatically fetched from tags you create in your VCS repository.
The easiest way to manage versioning is to just omit the version field from the composer.json file. The version numbers will then be parsed from the tag and branch names.
Please or to participate in this conversation.