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.
Path parameters
A PHP version as major and minor, such as 8.4.
Query parameters
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
The extensions built into PHP, by name. They are always loaded.
Every php.ini directive of this version, with its default, where it may be set (access) and the extension it belongs to.
Example php.ini text.
Fields of each item
Fields of each item
Platforms whose new sites start with it on.
Platforms it is recommended for.
Platforms that need it.
Extensions it needs on as well.
The full version, such as 8.4.9.
Sets of directives to apply together.
Fields of each item
Such as supported, security or eol.
Fields of each item
Extensions this version cannot offer, each with the reason. An empty list when there is none.
If it is refused
| Status | Reason | What to do |
|---|---|---|
401 | none | 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. |
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"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();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);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{
"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"
}{
"message": "Unauthenticated."
}{
"code": "company_unavailable",
"message": "Your company is unavailable.",
"reason": "company_unavailable"
}{
"code": "feature_off",
"message": "Not found.",
"reason": "feature_off"
}{
"code": "invalid",
"errors": {
"enabled": [
"The enabled field is required."
]
},
"field": "enabled",
"message": "The enabled field is required.",
"reason": "invalid"
}{
"code": "rate_limited",
"message": "Too many requests. Try again in 60 seconds.",
"reason": "rate_limited",
"retry_after_seconds": 60
}