Return installed PHP versions

This function lists the system's PHP versions.

Note:

This document only applies to systems that run EasyApache 4.

Important:

When you disable the WebServer role, the system disables this function.

SecurityBasicAuth
Responses
200

HTTP Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
get/LangPHP/php_get_installed_versions
Request samples
uapi --output=jsonpretty \
  --user=username \
  LangPHP \
  php_get_installed_versions
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "php_get_installed_versions",
  • "module": "LangPHP",
  • "result": {
    • "data": {
      • "versions": [
        • "ea-php72"
        ]
      },
    • "errors": null,
    • "messages": null,
    • "metadata": { },
    • "status": 1,
    • "warnings": null
    }
}