I want to get latest available version of Symfony Framework
. Can I get it with any available API
(maybe with Composer
or any web services)?
The official Symfony roadmap API can give you the most recent LTS, Stable, and Beta versions available.
Making a call to
https://symfony.com/roadmap.json?version=all
Will return something similar to
{
"symfony_versions": {
"lts": "2.8.5",
"stable": "3.0.5",
"beta": "3.1.0-DEV"
},
"latest_stable_version": "3.0",
"version": "all",
"error_message": "Wrong version format (should be X.Y or X.Y.Z where X, Y, and Z are integers)."
}
Note that this is an undocumented use of the API, as you trick it by not supplying a valid version number. This prompts the API to return a JSON object listing the current versions. Although undocumented, I think you can safely use this because the Symfony project has a strong history of maintaining backwards compatibility.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments