Sign inSign up

2ur1st/phpmetrics

By 2ur1st

Updated over 8 years ago

Docker image for PhpMetrics

Image
0

1.5K

2ur1st/phpmetrics repository overview

license Build Status

What is PhpMetrics?

PhpMetrics is a static analysis tool for PHP. It provides tons of metrics:

  • Complexity: Cyclomatic complexity, Myer's interval, Relative system complexity
  • Volume: Vocabulary, Data complexity, Lines of code, Readability...
  • Object Oriented: Lack of cohesion of methods, Coupling, Abstraction...
  • Maintainability: Maintainability index, Halstead's metrics, Effort...
  • And more !

How to use this image

Basic usage using current user.

docker run --rm \
    --user $(id -u):$(id -g) \
    --volume /local/path:/project \
    2ur1st/phpmetrics[:tag] [<options>]

For example, to generate metrics of our src directory.

docker run --rm \
    --user $(id -u):$(id -g) \
    --volume /local/path:/project \
    2ur1st/phpmetrics --report-html=build/metrics src

Volumes

  • /project: Your PHP project directory.

Tag summary

Content type

Image

Digest

Size

26.2 MB

Last updated

over 8 years ago

docker pull 2ur1st/phpmetrics