Inspect dependencies
composer show
composer outdated
composer audit
These commands help inspect packages, identify updates, and check known security advisories using Composer's advisory data.
Keep the lock file
Commit composer.lock so deployments install the same resolved versions. Do not run uncontrolled dependency updates directly on a production server.
Update deliberately
composer update vendor/package
Review lock-file changes, read release notes, run tests, and verify compatibility with your PHP runtime.
Reduce dependency risk
Remove packages that are no longer used. Prefer actively maintained libraries with clear release histories and security reporting processes.
A clean audit does not prove that an application is secure. Your own code, configuration, and runtime still need review.