Skip to content
PHP Ecosystem
Explore

PhpInfoSection

API reference › Debug Core › PhpInfo › PhpInfoSection

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

Typed view-model for one section in the phpinfo Overview hero (‘PHP version’ / ‘Build’ / ‘Configuration’ / ‘Capabilities’ / ‘Streams’).

PropertyTypeDescriptionDefined by
$eyebrow readonly constructorstringEyebrow shown in the section header (‘PHP version’, ‘Build’, …).PhpInfoSection
$headline readonly constructorstring|nullOptional hero headline (the big ‘PHP_VERSION’ digits + ‘php’ mark surfaced only by the first section); null for the regular sections. Default: null.PhpInfoSection
$tiles readonly constructorlist<PhpInfoTile>Non-empty tiles surfaced under the eyebrow (already filtered by the normalizer).PhpInfoSection
MethodDescriptionDefined by
__construct()Creates a phpinfo overview section.PhpInfoSection
public function __construct(string $eyebrow, array $tiles, string|null $headline = null)

Creates a phpinfo overview section.

Parameters

ParameterTypeDescription
$eyebrowstring
$tilesarray
$headlinestring|null