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

/php/extensions

First published 14 Oct 20260.2.0Unchanged since publication

List the PHP extension catalog and each installed version's extension states

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

Returns the extension catalog for the server's distribution. For each extension, the response includes its purpose, the module names reported by php -m, any additional modules it provides, and whether it belongs to UrbeStack's default extension set.

Each extension has a state for every installed PHP version. The on and off states indicate whether a separately packaged extension is installed. The none state means the repositories carry no package for that PHP version. The core, common, and base states indicate extensions built into PHP, supplied by its common package, or supplied by its base packages, respectively. These extensions cannot be turned off.

Use version to limit the report to one installed PHP version. Returns 400 for an unknown PHP version.

As a command

Run as root on the server

Parameters

versionquery ·string, matching ^[5-9]\.[0-9]$

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X GET "$API/php/extensions?version=0.0.1" \
  -H "Authorization: Bearer $TOKEN"
Response · 200 OK
{
  "distro": "text",
  "extensions": [
    {}
  ],
  "repositories_read": true,
  "switchable": 1,
  "total": 1,
  "versions": [
    {}
  ]
}

Errors

6 errors, each a status and a sentence
400--q is a text of up to 64 characters
400Invalid PHP version, expected e.g. 8.2
400Unknown PHP version '
400Unknown PHP version '<v>'
400Unknown PHP version '<version>'
401Authentication required
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.2.0 on 14 Oct 2026.
urbestack.com/docs/api/get-php-extensions/