URL that gives the latest stable version of CI |
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.
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 ...
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 */ |
Welcome Guest, Not a member yet? Register Sign In |