Get PHP details
Returns the full PHP configuration for the website: current version, available versions (supported and unsupported), enabled/disabled extensions, options with their current value, default, type and…
Returns the full PHP configuration for the website: current version, available versions
(supported and unsupported), enabled/disabled extensions, options with their current value,
default, type and the plan limit (max), and conflicting extension groups.
Use it to check the current PHP setup before updating the version, extensions or options.
API Token authentication
u123456789Domain name
mydomain.tldSuccess response
Current PHP version name
8.1Full PHP version name
8.1.27PHP extensions keyed by extension name
{"yaml":{"state":"enabled","description":""}}Unauthenticated response
Error response
GET /api/hosting/v1/accounts/{username}/websites/{domain}/php/details HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"php_version": "8.1",
"php_version_full": "8.1.27",
"php_versions": {
"supported": {
"8.1": "PHP 8.1"
},
"unsupported": {
"5.2": "PHP 5.2"
}
},
"options": {
"ANY_ADDITIONAL_PROPERTY": {
"type": "bool",
"value": "On",
"comment": "Allows PHP file functions to retrieve data from remote locations",
"default": "On",
"range": "8M-512M",
"max": "512M"
}
},
"extensions": {
"yaml": {
"state": "enabled",
"description": ""
}
},
"conflicting_extensions": [
[
"apc",
"opcache"
]
]
}Last updated
Was this helpful?