/php/extensions
0.2.0Unchanged since publicationList the PHP extension catalog and each installed version's extension states
settingsreadallReturns 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 serverParameters
versionquery ·string, matching ^[5-9]\.[0-9]$Example
See the API overview for how to set $API and $TOKEN.curl -sS -X GET "$API/php/extensions?version=0.0.1" \ -H "Authorization: Bearer $TOKEN"
200 OK{
"distro": "text",
"extensions": [
{}
],
"repositories_read": true,
"switchable": 1,
"total": 1,
"versions": [
{}
]
}Errors
6 errors, each a status and a sentence400--q is a text of up to 64 characters400Invalid PHP version, expected e.g. 8.2400Unknown PHP version '400Unknown PHP version '<v>'400Unknown PHP version '<version>'401Authentication requiredurbestack.com/docs/api/get-php-extensions/