[feature] Expose PHP version support states and dates as JSON#785
Merged
sgolemon merged 1 commit intophp:masterfrom Jun 22, 2023
Merged
[feature] Expose PHP version support states and dates as JSON#785sgolemon merged 1 commit intophp:masterfrom
sgolemon merged 1 commit intophp:masterfrom
Conversation
2c51d51 to
d3c2d12
Compare
sgolemon
approved these changes
Jun 22, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Expose PHP version support states for the community and PHP monitoring tools.
How
Expose a new JSON page
/releases/states(in the spirit of/releases/active) listing all PHP Branch and their support state.Preview
https://www.php.net/releases/states
{ "8": { "8.2": { "state": "stable", "initial_release": "2022-12-08T00:00:00+00:00", "active_support_end": "2024-12-08T00:00:00+00:00", "security_support_end": "2025-12-08T00:00:00+00:00" }, "8.1": { "state": "stable", "initial_release": "2021-11-25T00:00:00+00:00", "active_support_end": "2023-11-25T00:00:00+00:00", "security_support_end": "2024-11-25T00:00:00+00:00" }, "8.0": { "state": "security", "initial_release": "2020-11-26T00:00:00+00:00", "active_support_end": "2022-11-26T00:00:00+00:00", "security_support_end": "2023-11-26T00:00:00+00:00" } }, "7": { "7.4": { "state": "eol", "initial_release": "2019-11-28T00:00:00+00:00", "active_support_end": "2021-11-28T00:00:00+00:00", "security_support_end": "2022-11-28T00:00:00+00:00" }, "7.3": { "state": "eol", "initial_release": "2018-12-06T00:00:00+00:00", "active_support_end": "2020-12-06T00:00:00+00:00", "security_support_end": "2021-12-06T00:00:00+00:00" }, "7.2": { "state": "eol", "initial_release": "2017-11-30T00:00:00+00:00", "active_support_end": "2019-11-30T00:00:00+00:00", "security_support_end": "2020-11-30T00:00:00+00:00" }, "7.1": { "state": "eol", "initial_release": "2016-12-01T00:00:00+00:00", "active_support_end": "2018-12-01T00:00:00+00:00", "security_support_end": "2019-12-01T00:00:00+00:00" }, "7.0": { "state": "eol", "initial_release": "2015-12-03T00:00:00+00:00", "active_support_end": "2018-01-04T00:00:00+00:00", "security_support_end": "2019-01-10T00:00:00+00:00" } }, ... }TODO
make testspasses ✅make coding-standardspasses ✅