@rightcapital/php-parser
TypeScript types for PHP Parser JSON representation
2
Versions
MIT
License
Yes
Install Scripts
Verified
Provenance
Supply chain provenance
Status for the latest visible version.
SLSA provenance attestation
npm registry signatures
No source commit
Maintainers
rainxrighthao.zhengrightcapital-npm-publisher
Keywords
PHPPHP ParserASTTypeScriptLexer
Accepted risks
Findings the reviewer chose to accept rather than block on.
| Source | Rule | Reason | Accepted by | When |
|---|---|---|---|---|
| install-scripts | install-script:preinstall | AI (install-scripts): npx only-allow pnpm is a standard package manager enforcement pattern; stable for this package. | ai | |
| install-scripts | install-script:postinstall | AI (install-scripts): Optional composer install is expected for a PHP-parser types package; no-ops if composer is absent. | ai |
v1.5.4
3 findings
HIGH
Package has 'preinstall' script
install-scripts
Script: npx only-allow pnpm
HIGH
Package has 'postinstall' script
install-scripts
Script: command -v composer >/dev/null 2>&1 && composer install || echo 'Composer not found, skipping.'
INFO
Has SLSA provenance attestation
provenance
Published via CI/CD with Sigstore attestation (predicate: https://slsa.dev/provenance/v1). This is the strongest supply chain integrity signal.
v1.4.27
3 findings
HIGH
Package has 'preinstall' script
install-scripts
Script: npx only-allow pnpm
HIGH
Package has 'postinstall' script
install-scripts
Script: command -v composer >/dev/null 2>&1 && composer install || echo 'Composer not found, skipping.'
LOW
No provenance attestation
provenance
Package was published without Sigstore provenance. Only ~12% of npm packages have provenance, so this is common but not ideal.