Reputation: 2787
I would like to display dynamically in an application all current supported php versions to avoid hard code. Is there an api, tool or link to do that? I found this for last releases by version but I did not find for supported php versions like on this page. The best format should be json (xml eventually). Someone has got this information?
Upvotes: 0
Views: 440
Reputation: 97948
The source for php.net is available on Github.
Browsing that, I found that a function called get_active_branches
is used to generate the supported-versions.php
page, and looking for other uses, I found this URL, which outputs it as JSON:
https://www.php.net/releases/active
Upvotes: 2