For the complete documentation index, see llms.txt. This page is also available as Markdown.

List PHP extensions for a website

Lists every PHP extension available to an Agency Plan website and whether it is currently enabled.

List PHP extensions for a website

get

Lists every PHP extension available to an Agency Plan website and whether it is currently enabled.

Authorizations
AuthorizationstringRequired

API Token authentication

Path parameters
website_uidstringRequired

Agency Plan website UID

Example: zpwlGlp19
Responses
200

Success response

application/json
namestringOptional

PHP extension name.

Example: zip
descriptionstringOptional

What the extension provides.

Example: Lets PHP read and write compressed ZIP archives.
statestring · enumOptional

Whether the extension is currently enabled. Extensions in the "built-in" state are compiled into PHP and cannot be turned off.

Example: enabledPossible values:
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?