I feel like this should be a lot easier, but maybe it's not possible. I've read:
Composer list packages with installed version and latest version
https://getcomposer.org/doc/articles/versions.md#exact-version-constraint
I have an application that's a few years old written in CakePHP 3. According to the upgrade guide for CakePHP 4
First, check that your application is running on latest CakePHP 3.x version.
In my composer.json
I have this:
"require": {
"php": ">=5.6",
"cakephp/cakephp": "3.8.*",
// ...
},
I can see it's installed 3.8.12:
% cat vendor/cakephp/cakephp/VERSION.txt
3.8.12
How do I find out what the "latest version" of CakePHP 3.x is? Can Composer identify this and install it for me? Or do I need to manually find out and then update my composer.json
to a specific version of CakePHP 3.x? I can see in the composer docs how to specific a specific version. But I can't see any information about how you find out what the latest version is?
If I run composer show
it will output
cakephp/cakephp 3.8.12 The CakePHP framework
But this is misleading because there are, for example, versions such as CakePHP 3.9 or 3.10, etc which are still in the 3.x range but "later" than 3.8.12