get the latest joomla version numer programmatically

孤街浪徒 提交于 2020-01-06 01:52:47

问题


I am working on a maintenance function which I want to get the latest version numbers(as strings) of all the popular CMS and store them into database.

I've done the wordpress part by send a HEAD request to "http://wordpress.org/latest" and get the versioin number string "3.8.1" from the filename "wordpress-3.8.1.tar.gz".

Now I am wondering how could I deal with Joomla, or if possible, magento.

Thanks in advance.


回答1:


Try this,

For Long Term Support (LTS) branch -( Recommended) Stable release

http://update.joomla.org/core/list.xml

Short term support (STS) branch

http://update.joomla.org/core/sts/list_sts.xml

Testing versions.

http://update.joomla.org/core/test/list_test.xml

All these XML files have link to their details zip files.

Hope it helps..




回答2:


The official way of programmatically getting the latest Joomla version number (for each major version of the CMS) should be through their Joomla! Downloads API:

https://downloads.joomla.org/api-docs/

https://downloads.joomla.org/api/v1/latest/cms



来源:https://stackoverflow.com/questions/21594027/get-the-latest-joomla-version-numer-programmatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!