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.)
Install the pseiffert/phploc container (optional - this step is performed by Docker automatically when running the container):
$ docker pull pseiffert/phploc
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
Run phploc as always:
$ phploc src
Content type
Image
Digest
sha256:64a1a8988…
Size
128.4 MB
Last updated
almost 11 years ago
docker pull pseiffert/phploc