For PHP agencies and freelancers

Which client sites still need a security update?

NPMscan reads composer.lock in every repo you pick, checks each package for known vulnerabilities and tells you which projects declare a PHP version that no longer gets security fixes. The JavaScript in the same repos is checked too.

Works withnpmYarnpnpmComposerDocker

What NPMscan reads in a PHP repo

Only the files you already commit. Nothing to install on the server, no agent, no CI step.

composer.lock

The exact version of every package you install, including the ones your packages pull in. Dev packages are checked too.

composer.json

Used when there is no lockfile, checking the lowest version each constraint allows. Its require.php and config.platform.php give the declared PHP version.

.php-version · .tool-versions

Pinned PHP versions from phpenv, asdf and mise.

Dockerfile · compose.yml

The official base images you build on, such as php:8.1-fpm, mysql:5.7 or redis:6, checked for release lines that no longer get security fixes.

package.json · .nvmrc

The front end in the same repo, from npm, Yarn or pnpm lockfiles, and its declared Node version.

What it does not check

So you know where to look yourself.

  • We read the repository, not your server. If production runs a different PHP version from the one composer.json declares, we cannot see it.
  • PHP extensions and system libraries are not checked. For Docker images we check the release line in the tag, not the packages inside the image.
  • WordPress plugins and themes are only checked when they are installed with Composer.

Questions

Where do the advisories come from?

From OSV.dev, the open vulnerability database that includes the GitHub Advisory Database. Where a fix has been released, each finding names the version that has it.

Does it catch bugs in PHP itself, like PHP2Shell?

Not as a package advisory, because PHP is not a Composer package. What NPMscan does is warn when a project declares a PHP version that is past, or within six months of, the end of security support, so the repos still on old releases stand out.

Our repos have a Laravel API and a JavaScript front end. Is that two projects?

No. One repository is one project. Its report covers every composer.json and package.json in it, and each fix command uses the right tool: composer require for PHP packages, npm, Yarn or pnpm for JavaScript ones.

What access does it need?

Read access to the repositories you choose, granted when you sign in with GitHub. It never writes to your repos.