PHP code example of ideato / idephix
1. Go to this page and download the library: Download ideato/idephix 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/ */
ideato / idephix example snippets
/**
* Execute the touch of a file specified in input
* @param string $name the name of the file to be touch-ed
* @param bool $go if not specified the script execute a dry-run
*/
function testParams(\Idephix\Context $context, $name, $go = false)
{
$context->local('touch /tmp/'.$name);
$context->remote('touch /tmp/'.$name.'_remote');
}