# maglnet/ComposerRequireChecker

A CLI tool to check whether a specific composer package uses imported symbols that aren't part of its direct composer dependencies

Repository: https://github.com/maglnet/ComposerRequireChecker
Canonical: https://ross.abutalabs.com/products/composerrequirechecker
Language: PHP
License: MIT
License Family: permissive
Topics: code-quality, ci-tools
Last push: 2026-09-02T21:42:34+00:00

## Health v2 (maintenance only)
Score: 91/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 100, release rhythm 75, longevity 100
- inputs: {"age_days": 3934, "days_push": 0, "days_rel": 166, "gap_med": 23.5, "n_releases_24m": 13}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1010, forks 80 (observed 2026-09-03T02:15:14.674679+00:00)

## What it is
ComposerRequireChecker is a PHP CLI tool that analyzes a composer.json file and the package's source code to detect usage of symbols from undeclared (soft/transitive) dependencies. It helps enforce that all used libraries and PHP extensions are explicitly required, preventing breakage from indirect dependency updates.

## Use cases
- detect undeclared composer dependencies in my package
- prevent soft dependencies in a PHP project
- verify composer.json require section covers all used symbols
- check for missing PHP extension requirements
- add dependency checks to CI pipeline
- find transitive dependencies my code relies on

## When to choose
- you maintain a PHP library or package and want strict dependency hygiene
- you want to catch reliance on transitive dependencies before they break
- you need a CI-friendly static check of composer dependencies

## When to avoid
- your project does not use Composer
- you need general-purpose static analysis beyond dependency checking
- you want runtime dependency validation rather than static analysis

## Facets
- artifact type: cli-tool
- maturity: active
- function: cli, dependency-audit, code-review, developer-tools
- domain: developer-tools, testing
- platform: php, cli, cross-platform
- tags: composer, static-analysis, php, dependency-management, code-quality, ci, command-line

## Member repositories
- maglnet/ComposerRequireChecker (main) score 91

## Provenance
- Observed fields: from GitHub, fetched 2026-09-03T02:15:14.674679+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:11:57.346718+00:00, confidence not recorded.
  - readme: https://github.com/maglnet/ComposerRequireChecker (fetched 2026-09-03T02:15:14.674679+00:00, sha c570025ca03c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
