Basic usage using current user.
PACKAGIST: composer packagist address, if empty it will be https://packagist.org/p2/%s/%s.json
docker run --rm \
--user $(id -u):$(id -g) \
--volume /local/path:/app \
-e PACKAGIST="https://packagist.org/p2/%s/%s.json" \
herloct/phpmetrics[:tag] [<options>]
For example, to generate metrics of our src directory.
docker run --rm \
--user $(id -u):$(id -g) \
--volume /local/path:/app \
-e PACKAGIST="https://packagist.org/p2/%s/%s.json" \
herloct/phpmetrics --report-html=build/metrics src
Content type
Image
Digest
sha256:a08e88d6f…
Size
42 MB
Last updated
about 2 years ago
docker pull atishoo/phpmetrics