Skip to content
PHP Ecosystem
Explore

PhpInfoView

API reference › Debug Core › PhpInfo › PhpInfoView

final readonly classPHPForge\Debug\PhpInfo\PhpInfoView
Sourcesrc/PhpInfo/PhpInfoView.php

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

PropertyTypeDescriptionDefined by
$compactModules readonly constructorlist<PhpInfoCompactModule>Small modules summarized in the Overview because they expose only one or two informational values and no directives, statistics, notes, or other tables.PhpInfoView
$configureCommand readonly constructorstringConfigure Command value (multi-line shell flags); empty when not reported by phpinfo().PhpInfoView
$modulesHtml readonly constructorstringModules HTML produced by phpinfo() (already wrapped in <section> chrome by the normalizer); empty string when no module heading is present in the output.PhpInfoView
$sections readonly constructorlist<PhpInfoSection>Overview hero sections (‘PHP version’ first with the ‘PHP_VERSION’ headline, then Build / Configuration / Capabilities / Streams).PhpInfoView
$tocEntries readonly constructorlist<PhpInfoTocEntry>TOC entries in display order (Overview first, then one entry per phpinfo module heading).PhpInfoView
MethodDescriptionDefined by
__construct()Creates the composed phpinfo page view.PhpInfoView
public function __construct(array $sections, array $tocEntries, array $compactModules, string $modulesHtml, string $configureCommand)

Creates the composed phpinfo page view.

Parameters

ParameterTypeDescription
$sectionsarray
$tocEntriesarray
$compactModulesarray
$modulesHtmlstring
$configureCommandstring