---
title: "corestack_php_runtime_get"
url: https://docs.corefinity.com/mcp/tools/corestack_php_runtime_get
type: tool
last_updated: 2026-11-13
feature: php-runtime
related:
  - https://docs.corefinity.com/api/reference/runtime/get-php-runtime.md
  - https://docs.corefinity.com/guides/sites/software-and-services/php-version.md
---
# corestack_php_runtime_get

**PHP configuration.** A row's whole PHP card: the versions it may move to, its extensions, settings with their effective values, FPM, Xdebug, the custom php.ini, warnings, baked tools, the application's requirements, any change in flight, and `version`, the token the PHP writes need. Scope: read.

- Scope: `read`
- Runs as a task: no

## When to use it

A row's whole PHP card: the versions it may move to, its extensions, settings with their effective values, FPM, Xdebug, the custom php.ini, warnings, baked tools, the application's requirements, any change in flight, and `version`, the token the PHP writes need.

## Inputs

- `site_id` (integer, ≥ 1, required): The row: the site or one of its environments.

### Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "site_id": {
      "description": "The row: the site or one of its environments.",
      "minimum": 1,
      "type": "integer"
    }
  },
  "required": [
    "site_id"
  ],
  "type": "object"
}
```

## Refusals

- The refusals every tool can answer: `invalid_arguments`, `tenant_mismatch`, `scope_required`, `pin_refused`, `rate_limited`, `temporarily_unavailable`, `internal_error` (corestack://guides/how-this-server-works).

## Example

```json
{
  "name": "corestack_php_runtime_get",
  "arguments": {
    "site_id": 4211
  }
}
```

## Prompt

```text
Using the Corefinity MCP server, call corestack_php_runtime_get with site_id 4211. (PHP configuration.) Tell me what it returned.
```

## The same task elsewhere

- Endpoint: [GET /api/corestack/sites/{site}/php-runtime](https://docs.corefinity.com/api/reference/runtime/get-php-runtime.md)
- Guide: [Change PHP version](https://docs.corefinity.com/guides/sites/software-and-services/php-version.md)
