PHP code example of bushbaby / zf2-module-phing-service
1. Go to this page and download the library: Download bushbaby/zf2-module-phing-service 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/ */
bushbaby / zf2-module-phing-service example snippets
$process = $phingService->build('target', array('buildFile' => 'build.xml'));
$process->getOutput();
$process = $phingService->build('target', array('buildFile' => 'build.xml'), false);
$process->run(function ($type, $buffer) {
if (Process::ERR === $type) {
echo 'ERR > '.$buffer;
} else {
echo 'OUT > '.$buffer;
}
});