List PHP extensions for a website
Lists every PHP extension available to an Agency Plan website and whether it is currently enabled.
Lists every PHP extension available to an Agency Plan website and whether it is currently enabled.
Authorizations
AuthorizationstringRequired
API Token authentication
Path parameters
website_uidstringRequiredExample:
Agency Plan website UID
zpwlGlp19Responses
200
Success response
application/json
namestringOptionalExample:
PHP extension name.
zipdescriptionstringOptionalExample:
What the extension provides.
Lets PHP read and write compressed ZIP archives.statestring · enumOptionalExample:
Whether the extension is currently enabled. Extensions in the "built-in" state are compiled into PHP and cannot be turned off.
enabledPossible values: 401
Unauthenticated response
application/json
500
Error response
application/json
get/api/agency-hosting/v1/websites/{website_uid}/php-settings/extensions
GET /api/agency-hosting/v1/websites/{website_uid}/php-settings/extensions HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"name": "zip",
"description": "Lets PHP read and write compressed ZIP archives.",
"state": "enabled"
}
]Last updated
Was this helpful?