Skip to content
docsv0.1.1

AuditParser

Parses the JSON produced by `composer audit --format=json` into {@see AdvisoryFinding} objects. Domain-blind by design (ADR-0023): this package never shells out to `composer` itself — the host command runs the audit and hands this parser its JSON output.

AuditParser::parse()

public function parse(string $composerAuditJson): array

Traduce la salida JSON de `composer audit` a hallazgos de esta casa. Aísla el formato de una herramienta ajena en un solo lugar: cuando cambie, cambia aquí y no en cada consumidor.

Parameters

Parameters of parse()
NameTypeDescription
$composerAuditJsonstring

Throws

\JsonException on malformed input