Installed PHP versions
Retrieve the installed PHP versions on your server.
GET/api/servers/{server}/php/versions
Get installed PHP versions
This endpoint returns the installed PHP versions on the specified server.
full_versions holds the full version of every installed PHP version, for example "8.3": "8.3.27". Ploi reads these from PHP-FPM every night, after a PHP version is patched and after updates installed packages on the server. full_versions_checked_at is when the oldest of them was read (UTC). A version is null when it has not been read yet.
Request
GET
/api/servers/{server}/php/versionscurl -X GET "https://ploi.io/api/servers/{server}/php/versions" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Response
{
"data": {
"versions": [
"8.3",
"8.4"
],
"full_versions": {
"8.3": "8.3.27",
"8.4": "8.4.14"
},
"full_versions_checked_at": "2026-10-27T02:00:12.000000Z"
}
}