CorefinityCorefinityDocs
Open the Control PanelControl Panel
PHP · 1 of 11

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.

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

Path parameters

versionstringRequired

A PHP version as major and minor, such as 8.4.

Query parameters

platformstring

A platform, such as wordpress, to get its presets and examples. Any other value is refused 422.

Returns

200 The catalogue of that PHP version.

Fields of the 200 answer
builtinarray of stringsRequired

The extensions built into PHP, by name. They are always loaded.

directivesobjectRequired

Every php.ini directive of this version, with its default, where it may be set (access) and the extension it belongs to.

eol_datestring or nullRequired
examplesarray of objectsRequired

Example php.ini text.

Fields of each item
descriptionstringRequired
keystringRequired
textstringRequired
titlestringRequired
extensionsarray of objectsRequired
Fields of each item
always_onbooleanRequired
availablebooleanRequired
baseline_forarray of stringsRequired

Platforms whose new sites start with it on.

conflictsarray of stringsRequired
descriptionstringRequired
docs_urlstring or null
groupstringRequired
kindstringRequired
labelstringRequired
namestringRequired
non_production_onlybooleanRequired
recommended_forarray of stringsRequired

Platforms it is recommended for.

required_byarray of stringsRequired

Platforms that need it.

requiresarray of stringsRequired

Extensions it needs on as well.

unavailable_reasonstring or nullRequired
versionstring or nullRequired
php_versionstring or nullRequired

The full version, such as 8.4.9.

presetsarray of objectsRequired

Sets of directives to apply together.

Fields of each item
availablebooleanRequired
directivesobjectRequired
git_mode_notestring or null
git_mode_onlyobject
keystringRequired
labelstringRequired
reasonstring or null
xdebugboolean
statusstringRequired

Such as supported, security or eol.

toolsarray of objectsRequired
Fields of each item
labelstring
namestringRequired
pathstring
purposestring
versionstring or nullRequired
unavailableobjectRequired

Extensions this version cannot offer, each with the reason. An empty list when there is none.

versionstringRequired

If it is refused

StatusReasonWhat to do
401noneSend a valid token as Authorization: Bearer <token>.
403company_unavailableYour company is unavailable.
403scope_requiredUse a token with the scope named in scope.
403two_factor_requiredTurn on two-factor on your account, then send again.
404feature_offThis feature is not on for your organisation yet.
422invalidFix the field named in field; errors says why.
429rate_limitedWait for the seconds in Retry-After.

Reasons are listed by name in Errors and refusals.

The same task elsewhere

curl https://manage.corefinity.com/api/corestack/php/catalogue/8.4 \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/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"
}
Try it
Held in this tab's memory only. Never stored or sent to us.

Use a token with only the read scope. How to make one

Was this helpful?
Open in ClaudeOpen in ChatGPT