Hosting: PHP
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 the plan limit (max), and conflicting extension groups.
Use it to check the current PHP setup before updating the version, extensions or options.
get/api/hosting/v1/accounts/{username}/websites/{domain}/php/details
Path parameters
usernamestring required
Example:u123456789
domainstring required
Example:mydomain.tld
Domain name
Response
Success response
Example response
{
"php_version": "8.1",
"php_version_full": "8.1.27",
"php_versions": {
"supported": {
"8.1": "PHP 8.1"
},
"unsupported": {
"5.2": "PHP 5.2"
}
},
"extensions": {
"yaml": {
"state": "enabled",
"description": ""
}
},
"conflicting_extensions": [
[
"apc",
"opcache"
]
]
}