# PhpInfoView

> Top-level typed view-model for the phpinfo page.

[API reference](/docs/api/index.md) › [Debug Core](/docs/extensions/debug-core/reference/index.md) › [PhpInfo](/docs/extensions/debug-core/reference/phpinfo/index.md) › PhpInfoView

| final readonly class | `PHPForge\Debug\PhpInfo\PhpInfoView` |
| --- | --- |
| Source | [`src/PhpInfo/PhpInfoView.php`](https://github.com/php-forge/debug-core/blob/main/src/PhpInfo/PhpInfoView.php#L10) |

Top-level typed view-model for the phpinfo page.

## Properties

| Property | Type | Description | Defined by |
| --- | --- | --- | --- |
| <span id="property-compactModules"></span>`$compactModules` readonly constructor | `list<`[`PhpInfoCompactModule`](/docs/extensions/debug-core/reference/phpinfo/phpinfocompactmodule/index.md)`>` | Small modules summarized in the Overview because they expose only one or two informational values and no directives, statistics, notes, or other tables. | `PhpInfoView` |
| <span id="property-configureCommand"></span>`$configureCommand` readonly constructor | `string` | Configure Command value (multi-line shell flags); empty when not reported by [`phpinfo()`](https://www.php.net/manual/en/function.phpinfo.php). | `PhpInfoView` |
| <span id="property-modulesHtml"></span>`$modulesHtml` readonly constructor | `string` | Modules HTML produced by [`phpinfo()`](https://www.php.net/manual/en/function.phpinfo.php) (already wrapped in `<section>` chrome by the normalizer); empty string when no module heading is present in the output. | `PhpInfoView` |
| <span id="property-sections"></span>`$sections` readonly constructor | `list<`[`PhpInfoSection`](/docs/extensions/debug-core/reference/phpinfo/phpinfosection/index.md)`>` | Overview hero sections ('PHP version' first with the 'PHP_VERSION' headline, then Build / Configuration / Capabilities / Streams). | `PhpInfoView` |
| <span id="property-tocEntries"></span>`$tocEntries` readonly constructor | `list<`[`PhpInfoTocEntry`](/docs/extensions/debug-core/reference/phpinfo/phpinfotocentry/index.md)`>` | TOC entries in display order (Overview first, then one entry per phpinfo module heading). | `PhpInfoView` |

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`__construct()`](#method-__construct) | Creates the composed phpinfo page view. | `PhpInfoView` |

## Method details

### __construct() <span id="method-__construct"></span>

```php
public function __construct(array $sections, array $tocEntries, array $compactModules, string $modulesHtml, string $configureCommand)
```

Creates the composed phpinfo page view.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$sections` | `array` |  |
| `$tocEntries` | `array` |  |
| `$compactModules` | `array` |  |
| `$modulesHtml` | `string` |  |
| `$configureCommand` | `string` |  |