---
title: "Get a PHP version's catalogue"
url: https://docs.corefinity.com/api/reference/runtime/get-php-catalogue
type: endpoint
last_updated: 2026-11-13
feature: php-runtime
related:
  - https://docs.corefinity.com/guides/sites/software-and-services/php-version.md
  - https://docs.corefinity.com/mcp/tools/corestack_php_catalogue_get.md
---
# Get a PHP version's catalogue

Answers the extensions of a PHP version with what needs them, the tools that come with it and its php.ini
directives. With `platform`, the presets and examples are those for that platform. It is not about one site:
what a site has on is in its PHP configuration.

```http
GET /api/corestack/php/catalogue/{version}
```

- Scope: `read`
- Two-factor: required on your account (all)
- Rate limit: 60 a minute
- Try it in the console: on

## Path parameters

- `version` (string, required): A PHP version as major and minor, such as `8.4`.

## Query parameters

- `platform` (string): A platform, such as `wordpress`, to get its presets and examples. Any other value is refused `422`.

## Request

### curl

```bash
curl https://manage.corefinity.com/api/corestack/php/catalogue/8.4 \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json"
```

### PHP

```php
use Illuminate\Support\Facades\Http;

$response = Http::withToken(env('COREFINITY_TOKEN'))
    ->acceptJson()
    ->get('https://manage.corefinity.com/api/corestack/php/catalogue/8.4');

$data = $response->json();
```

### Node

```javascript
const res = await fetch('https://manage.corefinity.com/api/corestack/php/catalogue/8.4', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.COREFINITY_TOKEN}`,
    Accept: 'application/json',
  },
});

// An answer with no body (204) has nothing to parse.
const text = await res.text();
const data = text && JSON.parse(text);
```

### Python

```python
import os
import requests

res = requests.get(
    "https://manage.corefinity.com/api/corestack/php/catalogue/8.4",
    headers={
        "Authorization": f"Bearer {os.environ['COREFINITY_TOKEN']}",
        "Accept": "application/json",
    },
)

data = res.json() if res.content else None
```

## Responses

### 200 The catalogue of that PHP version.

```json
{
  "builtin": [
    "core",
    "ctype",
    "curl",
    "date",
    "dom",
    "fileinfo"
  ],
  "directives": {
    "max_input_vars": {
      "access": "perdir",
      "default": "500000",
      "extension": "core"
    },
    "memory_limit": {
      "access": "all",
      "default": "1024M",
      "extension": "core"
    },
    "realpath_cache_size": {
      "access": "system",
      "default": "4096K",
      "extension": "core"
    }
  },
  "eol_date": "2028-12-31",
  "examples": [
    {
      "description": "Room for large product imports and menus with many items.",
      "key": "woocommerce_large_imports",
      "text": "max_input_vars = 20000\n",
      "title": "WooCommerce large imports"
    },
    {
      "description": "Show every error on the page while you test. Not on production.",
      "key": "debug_staging",
      "text": "display_errors = On\nerror_reporting = E_ALL\nlog_errors = On\n",
      "title": "Debug a staging environment"
    }
  ],
  "extensions": [
    {
      "always_on": false,
      "available": true,
      "baseline_for": [],
      "conflicts": [
        "blackfire",
        "pcov"
      ],
      "description": "Step debugging and error tracing while developing. Not on production.",
      "group": "debugging",
      "kind": "zend_extension",
      "label": "Xdebug",
      "name": "xdebug",
      "non_production_only": true,
      "recommended_for": [],
      "required_by": [],
      "requires": [],
      "unavailable_reason": null,
      "version": "3.5.3"
    },
    {
      "always_on": false,
      "available": true,
      "baseline_for": [
        "wordpress",
        "laravel",
        "magento2",
        "shopware"
      ],
      "conflicts": [],
      "description": "Image processing through ImageMagick: resizing, format conversion and PDF thumbnails.",
      "group": "images",
      "kind": "extension",
      "label": "Imagick",
      "name": "imagick",
      "non_production_only": false,
      "recommended_for": [],
      "required_by": [],
      "requires": [],
      "unavailable_reason": null,
      "version": "3.8.1"
    },
    {
      "always_on": false,
      "available": true,
      "baseline_for": [
        "wordpress",
        "laravel",
        "magento2",
        "shopware"
      ],
      "conflicts": [],
      "description": "A client for Redis and Valkey, for caches, sessions and queues.",
      "group": "caching",
      "kind": "extension",
      "label": "Redis",
      "name": "redis",
      "non_production_only": false,
      "recommended_for": [],
      "required_by": [
        "shopware"
      ],
      "requires": [
        "igbinary",
        "msgpack"
      ],
      "unavailable_reason": null,
      "version": "6.3.0"
    }
  ],
  "php_version": "8.4.9",
  "presets": [
    {
      "available": true,
      "directives": {
        "max_execution_time": "300",
        "max_input_time": "300",
        "max_input_vars": "20000"
      },
      "git_mode_note": null,
      "git_mode_only": [],
      "key": "woocommerce_large_catalogue",
      "label": "WooCommerce large catalogue",
      "reason": null,
      "xdebug": false
    },
    {
      "available": true,
      "directives": {
        "display_errors": "On",
        "error_reporting": "E_ALL",
        "zend.assertions": "1"
      },
      "git_mode_note": null,
      "git_mode_only": [],
      "key": "debug",
      "label": "Debug (non-production)",
      "reason": null,
      "xdebug": true
    }
  ],
  "status": "supported",
  "tools": [
    {
      "label": "7-Zip",
      "name": "7z",
      "path": "/usr/bin/7z",
      "purpose": "Packs and unpacks 7z and other archives.",
      "version": "25.01"
    }
  ],
  "unavailable": [],
  "version": "8.4"
}
```

### 401 No token, or a token that is not valid.

```json
{
  "message": "Unauthenticated."
}
```

### 403 The token lacks the scope (`scope_required`, with the `scope` to use), or your company requires two-factor authentication and you have not set it up. For routes outside Managed Clusters.

```json
{
  "code": "company_unavailable",
  "message": "Your company is unavailable.",
  "reason": "company_unavailable"
}
```

### 404 There is no catalogue for that PHP version, or PHP configuration is not on for your company (`feature_off`).

```json
{
  "code": "feature_off",
  "message": "Not found.",
  "reason": "feature_off"
}
```

### 422 A field is missing or wrong. `field` names the first one and `errors` lists every one.

```json
{
  "code": "invalid",
  "errors": {
    "enabled": [
      "The enabled field is required."
    ]
  },
  "field": "enabled",
  "message": "The enabled field is required.",
  "reason": "invalid"
}
```

### 429 Too many requests (`rate_limited`). Wait for the number of seconds in `Retry-After`, which `retry_after_seconds` repeats.

```json
{
  "code": "rate_limited",
  "message": "Too many requests. Try again in 60 seconds.",
  "reason": "rate_limited",
  "retry_after_seconds": 60
}
```

## If it is refused

| Status | Reason | What to do |
|---|---|---|
| 401 |  | Send a valid token as `Authorization: Bearer <token>`. |
| 403 | `company_unavailable` | Your company is unavailable. |
| 403 | `scope_required` | Use a token with the scope named in `scope`. |
| 403 | `two_factor_required` | Turn on two-factor on your account, then send again. |
| 404 | `feature_off` | This feature is not on for your organisation yet. |
| 422 | `invalid` | Fix the field named in `field`; `errors` says why. |
| 429 | `rate_limited` | Wait for the seconds in `Retry-After`. |

## The same task elsewhere

- Guide: [Change PHP version](https://docs.corefinity.com/guides/sites/software-and-services/php-version.md)
- MCP tool: [`corestack_php_catalogue_get`](https://docs.corefinity.com/mcp/tools/corestack_php_catalogue_get.md)
