Skip to content

[feature] Expose PHP version support states and dates as JSON - #785

Merged
sgolemon merged 1 commit into
php:masterfrom
Tom32i:php-support-states
Jun 22, 2023
Merged

[feature] Expose PHP version support states and dates as JSON#785
sgolemon merged 1 commit into
php:masterfrom
Tom32i:php-support-states

Conversation

@Tom32i

@Tom32iTom32i commented Jun 14, 2023

Copy link
Copy Markdown
Contributor

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

  • Implementation
  • make tests passes ✅
  • make coding-standards passes ✅

@Tom32i
Tom32i marked this pull request as draft June 14, 2023 14:32
@Tom32i
Tom32i marked this pull request as ready for review June 14, 2023 14:34
@Tom32i
Tom32iforce-pushed the php-support-states branch from 2c51d51 to d3c2d12CompareJune 14, 2023 14:47
@Tom32iTom32i changed the title [feature] Expose PHP version support states as JSON[feature] Expose PHP version support states and dates as JSONJun 14, 2023
@sgolemon
sgolemon merged commit 558f2f9 into php:masterJun 22, 2023
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@Tom32i@sgolemon