Usage examples of PHP Phar Archives
50K+
Note: The below table can also contain planned tags that are waiting for to be built and pushed to Docker Hub. For more accurate information visit the description on Docker Hub which is updated the new images were pushed.
This project contains examples how to use PHP Phar archives. Under "examples", you can find more folders with examples. Each folder contains a README.md. You can read it on GitHub or you can download this PHP application from GitHub or as a Docker image from Docker Hub.
When you run it, you will see a dashboard where you can run the examples, rebuild them and read the details of the chosen example.
docker run -it --rm -p 8080:80 rimelek/phar-examples
or in the background:
docker run -d -p 8080:80 --name phar-examples rimelek/phar-examples
Use a volume if you want to keep the already built examples
docker run -d -p 8080:80 --name phar-examples -v phar-examples_output:/var/www/html/output rimelek/phar-examples
If you clone the repository, you can also use the run.sh to make the container available on port 8080
./run.sh
If port 8080 is not available, you can pass another port:
./run.sh 9090
or save a .env file with an exported port
export PORT=9090
Note: Export is necessary for run.sh to show the URL which can also become clickable in some IDE-s like PHPStorm.
Content type
Image
Digest
sha256:caa0d43e9…
Size
167.7 MB
Last updated
about 13 hours ago
docker pull rimelek/phar-examples