Skip to content

fredericomartini-docker-libraries/phpmd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

docker-phpmd

Run PHP Mess Detector (phpmd) in Docker container

Build

Build from Dockerfile:

docker build -t fredericomartini/phpmd .

Verify build:

docker run --rm -it fredericomartini/phpmd --version

Usage

  1. Install the fredericomartini/phpmd container (optional - this step is performed by Docker automatically when running the container):
$ docker pull fredericomartini/phpmd
  1. Define an bash alias that runs this container whenever phpmd is invoked on the command line:
$ echo "alias phpmd='docker run --rm -it -v \$(pwd):/app fredericomartini/phpmd'" >> ~/.bashrc
$ source ~/.bashrc
  1. Run phpmd as always:
$ phpmd --version

About

Docker image for PHP Mess Detector - https://github.com/phpmd/phpmd

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published