Skip to content

mamuz/php-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 "$@"
}

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

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

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

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

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

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

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

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

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

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

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