Pull Request: https://github.com/php/web-php/pull/785
Author: Tom32i

## 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
```json
{
        "8": {
                "8.2": {
                        "state": "stable",
                        "initial": "2022-12-08T00:00:00+00:00",
                        "until": "2024-12-08T00:00:00+00:00",
                        "eol": "2025-12-08T00:00:00+00:00"
                },
                "8.1": {
                        "state": "stable",
                        "initial": "2021-11-25T00:00:00+00:00",
                        "until": "2023-11-25T00:00:00+00:00",
                        "eol": "2024-11-25T00:00:00+00:00"
                },
                "8.0": {
                        "state": "security",
                        "initial": "2020-11-26T00:00:00+00:00",
                        "until": "2022-11-26T00:00:00+00:00",
                        "eol": "2023-11-26T00:00:00+00:00"
                }
        },
        "7": {
                "7.4": {
                        "state": "eol",
                        "initial": "2019-11-28T00:00:00+00:00",
                        "until": "2021-11-28T00:00:00+00:00",
                        "eol": "2022-11-28T00:00:00+00:00"
                },
                "7.3": {
                        "state": "eol",
                        "initial": "2018-12-06T00:00:00+00:00",
                        "until": "2020-12-06T00:00:00+00:00",
                        "eol": "2021-12-06T00:00:00+00:00"
                },
                ...
        },
        ...
}
```

-- 
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to