LinuxCommandLibrary

security-checker

Audit PHP dependencies for known vulnerabilities

TLDR

Check project

$ security-checker security:check
copy
Check specific file
$ security-checker security:check [composer.lock]
copy
Output as JSON
$ security-checker security:check --format=json
copy
Check with end-of-life
$ security-checker security:check --end-point=[url]
copy

SYNOPSIS

security-checker security:check [--format fmt] [options] [lockfile]

DESCRIPTION

security-checker audits PHP project dependencies for known security vulnerabilities by analyzing the composer.lock file against the FriendsOfPHP security advisories database. It identifies installed packages with published CVEs or security issues.
The tool returns a non-zero exit code when vulnerabilities are found, making it suitable for CI/CD pipeline integration as a gate check. Output is available in text, JSON, and YAML formats for both human review and programmatic processing by other tools.

PARAMETERS

security:check

Check for vulnerabilities.
--format FMT
Output format (text, json, yaml).
--end-point URL
Custom vulnerability DB.
--timeout SEC
Request timeout.
-v
Verbose output.

CAVEATS

PHP/Composer specific. Database may lag. Network required.

HISTORY

security-checker was created by SensioLabs (Symfony) to check PHP project dependencies for known security vulnerabilities.

SEE ALSO

composer(1), npm-audit(1), snyk(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community