PHP Versions
List the PHP versions Vector Pro environments can run, straight from the platform that provisions them.
Get available PHP versions for Vector environments.
GET/php-versions
List PHP Versions
Retrieves a list of all available PHP versions for Vector environments.
Currently supported versions: 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5
Request
curl -X GET \
"https://api.builtfast.com/api/v1/vector/php-versions" \
-H "Authorization: Bearer $API_KEY" \
-H "Accept: application/json"$versions = $client->phpVersions->list();const phpVersions = await client.phpVersions.list();Response
application/json
{
"data": [
{
"value": "7.2",
"label": "PHP 7.2"
},
{
"value": "7.3",
"label": "PHP 7.3"
},
{
"value": "7.4",
"label": "PHP 7.4"
},
{
"value": "8.0",
"label": "PHP 8.0"
},
{
"value": "8.1",
"label": "PHP 8.1"
},
{
"value": "8.2",
"label": "PHP 8.2"
},
{
"value": "8.3",
"label": "PHP 8.3"
},
{
"value": "8.4",
"label": "PHP 8.4"
},
{
"value": "8.5",
"label": "PHP 8.5"
}
],
"message": "PHP versions retrieved successfully",
"http_status": 200
}{
"data": {},
"message": "Unauthenticated",
"http_status": 401
}