Skip to main content

Module parser

Module parser 

Source
Expand description

composer.json parser with position tracking.

Parses composer.json files and extracts dependency information with precise source positions for LSP operations. Platform packages (php, ext-, lib-) are filtered out as they are not Packagist packages.

Structs§

ComposerParseResult
Result of parsing a composer.json file.

Functions§

is_platform_package
Returns true if the package is a platform requirement (not a Packagist package).
parse_composer_json
Parses a composer.json file and extracts all non-platform dependencies with positions.