based on Unused Scanner tool by Insolita found at: https://github.com/Insolita/unused-scanner
docker run -v `pwd`:/app juanmrad/unused-scanner ./unused.php
For power users with different configs:
# Add project dir reference.
PROJECT_DIR=$(pwd)
# Add location of config file relative to docker container
CONFIG=/workdir/config/unused-scanner/prod.php
# Image Tag:
# tag is defined as: juanmrad/unused-scanner:[package version]
PHP_UNUSED_SCANNER=juanmrad/unused-scanner:2.3.0
docker run \
--rm \
-v $PROJECT_DIR:/workdir \
-w /workdir \
$IMAGE \
$CONFIG
Current and previous versions of the docker images can be found here.
Since this is just the docker version of an already existing package you can help the package itself here.