PHP code example of empaphy / docker-composer
1. Go to this page and download the library: Download empaphy/docker-composer 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/ */
empaphy / docker-composer example snippets
json
{
"extra": {
"docker-composer": {
"service": "php",
"mode": "exec",
"compose-files": ["docker-compose.yaml"],
"project-directory": ".",
"workdir": "/usr/src/app",
"exclude": ["host-only-script"],
"service-mapping": {
"php-test": "test",
"php-tools": ["stan", "cs"]
}
}
}
}