Sign inSign up

atishoo/phpmetrics

By atishoo

Updated about 2 years ago

php8.2下的phpmetrics

Image
Developer tools
0

559

atishoo/phpmetrics repository overview

How to use this image

Basic usage using current user.

ENV

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

Volumes

  • /app: Your PHP project directory.

Tag summary

Content type

Image

Digest

sha256:a08e88d6f

Size

42 MB

Last updated

about 2 years ago

docker pull atishoo/phpmetrics