Structs§
- PhpManifest
Finder - Discovers
composer.jsonfiles under a directory tree. - PhpManifest
Parser - Parser for PHP Composer
composer.json/composer.lockmanifests. - PhpResolver
- Resolver: adjacent/parent lock preferred; Composer only with SEC-023 opt-in.
- PhpTierB
Analyzer - Tier B/C reachability for PHP (
use/requirestring scan).
Constants§
- PACKAGIST_
ECOSYSTEM - OSV / package ecosystem for Packagist (PHP / Composer).
- PHP_
LOCK_ FILE_ NAMES - Supported PHP Composer lock file basenames (Appendix A).
- PHP_
LOCK_ MAX_ BYTES - Maximum accepted size for composer.lock files.
- PHP_
MANIFEST_ MAX_ BYTES - Maximum accepted size for composer.json manifests.
- PHP_
MANIFEST_ NAME - PHP Composer manifest file name (FR-005).
Functions§
- find_
php_ lock_ file - Find
composer.locknext to the manifest or in parent directories up to the scan root. - is_
packagist_ package_ name - True when
nameis a Packagist-stylevendor/packageidentity. - is_
php_ lock_ file - True when
nameis a supported PHP lock file basename. - is_
php_ manifest_ name - True when
nameis the built-in Composer manifest basename. - parse_
composer_ json - Parse composer.json content into direct dependency packages.
- parse_
composer_ json_ with_ declarations - Parse composer.json with declaration line metadata (FR-036a).
- parse_
composer_ lock - Parse
composer.lockcontent into pinned packages. - parse_
composer_ lock_ with_ declarations - Parse with declaration metadata (FR-036a).
- php_
crate_ id - Stable crate identity for coverage and plugin diagnostics.
- php_
package_ manager_ available - True when
composerappears on PATH. - php_
package_ manager_ hint - OS-specific hint when Composer is not found (FR-024).