URL that gives the latest stable version of CI - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: URL that gives the latest stable version of CI (/showthread.php?tid=62846) |
URL that gives the latest stable version of CI - jacek.ciach - 09-02-2015 Hi, I am wondering, is there any address, like for example codeigniter.com/version or codeigniter.com/latest, where one can get to know what the latest, stable version of CI is. Of course everyone can just open the main page of CI , but I'm interesting in a way, that can be used with cURL or wget, etc. Let's say, that I want to check with PHP if it's time to do an update of my CI. RE: URL that gives the latest stable version of CI - Narf - 09-02-2015 The GitHub API can help with that, although you would have to parse the response and implement the logic so that it won't give you RC tags and such: https://developer.github.com/v3/repos/#list-tags But Composer can manage that whole process for you already, so ... RE: URL that gives the latest stable version of CI - jacek.ciach - 09-02-2015 Yes, I know Composer will do... But I've been just curious. If created a piece of code to check how GitHub API works. In case someone was interested (a CLI script): PHP Code: <?php /* get_latest_version.php */ |