Get your free beta license ↗
API operation · php group
GET

/php/versions

First published 3 Oct 20260.1.0Unchanged since publication

List known PHP versions and their installation status

Who may call it
AdministratorResellerCustomer
Token scope, any of
settingsreadall
Answers200 OK

For each PHP version UrbeStack knows, the report shows its upstream support status (active, security, or eol), the next support status change when applicable, and the date security fixes end. It also shows whether the version is installed, whether PHP-FPM is running, and whether the version can be selected for a domain. A version is selectable if it is installed and visible.

The report includes the server distribution, the default PHP version, the hidden versions, the extension list, and the configured installation set in installed_set. If php.versions.installed is unset, installed_set includes every version still supported upstream. The missing field lists versions in that set that are yet to be installed.

The report includes per-version domain and owner counts, the total domain count, and the number of domains that follow the default. Domain counts include suspended domains. It also shows the default PHP limits and how many domains override them, along with each version's configured executable paths, pool directory, PHP-FPM service name, and package details when available.

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X GET "$API/php/versions" \
  -H "Authorization: Bearer $TOKEN"
Response · 200 OK
{
  "default": "text",
  "distro": "text",
  "domains_total": 1,
  "extensions": [
    "text"
  ],
  "following_default": 1,
  "hidden": [
    "text"
  ],
  "installed_set": [
    "text"
  ],
  "limits": {
    "builtin": {},
    "defaults": {},
    "keys": [
      "text"
    ],
    "own_counts": {}
  },
  "missing": [
    {
      "binary": "text",
      "cli": "text",
      "days_left": 1,
      "domains": 1,
      "hidden": true,
      "installable": true,
      "installed": true,
      "is_default": true,
      "legacy": true,
      "near_end": true,
      "owners": 1,
      "package": "basic",
      "package_version": "text",
      "pool_dir": "text",
      "running": true,
      "security_until": "text",
      "selectable": true,
      "service": "text",
      "state": "up",
      "status": "active",
      "status_changes_on": "text",
      "version": "0.0.1",
      "wanted": true
    }
  ],
  "versions": [
    {
      "binary": "text",
      "cli": "text",
      "days_left": 1,
      "domains": 1,
      "hidden": true,
      "installable": true,
      "installed": true,
      "is_default": true,
      "legacy": true,
      "near_end": true,
      "owners": 1,
      "package": "basic",
      "package_version": "text",
      "pool_dir": "text",
      "running": true,
      "security_until": "text",
      "selectable": true,
      "service": "text",
      "state": "up",
      "status": "active",
      "status_changes_on": "text",
      "version": "0.0.1",
      "wanted": true
    }
  ]
}

Errors

3 errors, each a status and a sentence
400Invalid setting key
401Authentication required
404Setting '<key>' not found
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/api/get-php-versions/