简体   繁体   English

以编程方式获取最新的joomla版本编号

[英]get the latest joomla version numer programmatically

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. 我正在维护一项功能,我想获取所有流行CMS的最新版本号(以字符串形式)并将其存储到数据库中。

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". 我已经通过将HEAD请求发送到“ http://wordpress.org/latest ”并从文件名“ wordpress-3.8.1.tar.gz”中获得版本号字符串“ 3.8.1”来完成wordpress部分。

Now I am wondering how could I deal with Joomla, or if possible, magento. 现在我想知道如何处理Joomla,或者如果可能的话,处理magento。

Thanks in advance. 提前致谢。

Try this, 尝试这个,

For Long Term Support (LTS) branch -( Recommended) Stable release 对于长期支持(LTS)分支-(推荐)稳定版本

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

Short term support (STS) branch 短期支持(STS)分支

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. 所有这些XML文件都有指向其详细信息zip文件的链接。

Hope it helps.. 希望能帮助到你..

The official way of programmatically getting the latest Joomla version number (for each major version of the CMS) should be through their Joomla! 以编程方式获取最新的Joomla版本号(针对CMS的每个主要版本)的官方方式应该是通过其Joomla! Downloads API: 下载API:

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

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM