PHP code example of ez-php / docker
1. Go to this page and download the library: Download ez-php/docker library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ez-php / docker example snippets
bash
cd modules/docker
docker build -t au9500/php:8.5 .
bash
composer ocker-init
json
"scripts": {
"docker:init": "php vendor/ez-php/docker/bin/docker-init"
}
dockerfile
FROM au9500/php:8.5
WORKDIR /var/www/html