CorefinityCorefinityDocs
Open the Control PanelControl Panel
PHP and runtime · 18 of 22

corestack_php_requirements_get

Application PHP requirements.

Scope readNo secrets returned
On this page

When to use it

See what the application on a row needs from PHP, read from its composer.lock or WordPress's version file: the PHP constraint and range, the ext-* extensions it needs, the extensions the row does not load (missing_extensions) and the PHP versions outside its range (outside_range). It answers what was read last; refresh: true reads the live site first (at most once every few minutes; a failed read leaves the stored answer as it was). Check it before a PHP version change.

Ask for it

Prompt
Using the Corefinity MCP server, call corestack_php_requirements_get with site_id 4211, refresh true. (Application PHP requirements.) Tell me what it returned.

Inputs

refreshboolean

Read the live site first (at most once every few minutes).

site_idintegerRequired

The row: the site or one of its environments. At least 1.

Example call

tools/call
{
  "name": "corestack_php_requirements_get",
  "arguments": {
    "site_id": 4211,
    "refresh": true
  }
}

If it is refused

ReasonWhat to do
not_runningThe site is not running, so it cannot be read; the stored answer stays.
switched_offRunning commands on sites is switched off at the moment.
layout_unknownThe site's htdocs is not a release the Control Panel deployed, so the requirements cannot be read from it; the stored answer stays.
requirements_unreadableComposer.lock or WordPress's version file is there but cannot be read as the application's file (outside the site root, not a regular file, unreadable or over 8 MiB); the stored answer stays.
invalid_argumentsThe arguments do not match the tool's input schema, or the Control Panel refused a field. Fix the fields named in the answer and call again.
tenant_mismatchThe object does not exist or the token may not see it. Check the id.
scope_requiredThe token lacks a scope this call needs. Open the link in the answer to add it, then call again.
pin_refusedThe grant is limited to chosen clusters, sites or environments, and this call is outside them. Open the link in the answer to widen it.
rate_limitedToo many calls. Wait for the number of seconds the answer names.
temporarily_unavailableThe Control Panel could not answer just now. Nothing was started; try again shortly.
internal_errorSomething went wrong on our side. Quote the trace id to support.

The same task elsewhere

Was this helpful?
Open in ClaudeOpen in ChatGPT