Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

PHPLoc Docker-Container

This repository holds the information required to build a Docker container that runs PHPLoc.


Please note that you'll only be able to run phploc on directories below your current working directory since only the current working directory is being mounted as a Docker volume inside the container. (At least if you're using the alias as suggested below.)


  1. Install the pseiffert/phploc container (optional - this step is performed by Docker automatically when running the container):

     $ docker pull pseiffert/phploc
  2. Define an bash alias that runs this container whenever phploc is invoked on the command line:

     $ echo "alias phploc='docker run --rm -it -v \$(pwd):/opt/workspace pseiffert/phploc'" >> ~/.bashrc
     $ source ~/.bashrc
  3. Run phploc as always:

     $ phploc src
Docker Pull Command
Source Repository