Source code for the post: https://medium.com/@ttulka/building-a-minimalist-mvc-framework-in-php-from-scratch-48325fecd66f
You can simply use the Docker image, already prepared:
docker image build -t php-apache-with-rewrite .
sudo docker run --rm -p 8080:80 -v $(pwd):/var/www/html php-apache-with-rewrite
curl http://localhost:8080/hello/user123