Ploi API
Ploi API

Install PHP version

Installs a new PHP version in your server if it's not already installed.

POST api/servers/{server}/php/install

Parameters

Parameter Type Status Description
version string or float required The PHP version you want to install, e.g. 7.4, 8.0, 8.1

Example request:

curl -X POST "https://ploi.io/api/servers/{server}/php/install" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
   --data '{ 
         "version": "8.1"
    }'

Example response:

HTTP/1.1 200 OK
Content-Type: application/json

{
    "status": "ok",
    "message": "PHP version 8.1 is being installed."
}