Public | Automated Build

Last pushed: 3 months ago
Short Description
Container to analyze PHP projects
Full Description

php-analyzer

Container to analyze PHP projects

Introduction

You can use following commands directly or create a proxy command for each one like this:

phpcs() {
    tty=
    tty -s && tty=--tty
    docker run \
       $tty \
       --interactive \
       --rm \
       --user $(id -u):$(id -g) \
       --volume /etc/passwd:/etc/passwd:ro \
       --volume /etc/group:/etc/group:ro \
       --volume $(pwd):/app \
       mamuz/php-analyzer phpcs "$@"
}

Code Style + Fixer

docker run --rm -it -v $(pwd):/app mamuz/php-analyzer phpcs

docker run --rm -it -v $(pwd):/app mamuz/php-analyzer phpcbf

PHP CS Fixer

docker run --rm -it -v $(pwd):/app mamuz/php-analyzer php-cs-fixer

Mess Detector

docker run --rm -it -v $(pwd):/app mamuz/php-analyzer phpmd

Copy Paste Detector

docker run --rm -it -v $(pwd):/app mamuz/php-analyzer phpcpd

Dead Code Detector

docker run --rm -it -v $(pwd):/app mamuz/php-analyzer phpdpd

Line of Codes

docker run --rm -it -v $(pwd):/app mamuz/php-analyzer phploc

Dependency Analysis

docker run --rm -it -v $(pwd):/app mamuz/php-analyzer phpda

Security Checker

docker run --rm -it -v $(pwd):/app mamuz/php-analyzer security-checker

PhpMetrics

docker run --rm -it -v $(pwd):/app mamuz/php-analyzer phpmetrics

JMeter

docker run --rm -it -v $(pwd):/app mamuz/php-analyzer jmeter -n -t TESTPLAN.jmx

Docker Pull Command
Owner
mamuz
Source Repository

Comments (0)