Skip to main content

Module platform

Module platform 

Source
Expand description

Port of Composer\Repository\PlatformRepository: the platform packages (composer*, php*, ext-, lib-, hhvm) in Composer’s exact order, with the config.platform overrides. Probing the current PHP is done by assets/platform-probe.php (a transcription of initialize(), raw versions); normalization and its fallbacks are replayed here with the exact port of VersionParser.

Structs§

PlatformError

Constants§

COMPOSER_VERSION
Emulated Composer version and its APIs (Composer::VERSION, PluginInterface::PLUGIN_API_VERSION, Composer::RUNTIME_API_VERSION).
PLUGIN_API_VERSION
RUNTIME_API_VERSION

Functions§

ini_files
XdebugHandler::getAllIniFiles() from the probe’s ini entry: COMPOSER_ORIGINAL_INIS (set by a Composer restarted without xdebug) wins; else [php_ini_loaded_file()] + the trimmed scanned files.
is_platform_package
PlatformRepository::PLATFORM_PACKAGE_REGEX.
loaded_extensions
The extensions the probed PHP has loaded (extension_loaded), before any config.platform override: ext-<name> keys, lowercased.
platform_packages
The ordered list of platform packages (getPackages()), probed being the probe output and overrides config.platform.
probe
Runs the probe on the current PHP (VIVACITY_PHP or php).