PHP code example of gud3 / executor

1. Go to this page and download the library: Download gud3/executor 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/ */

    

gud3 / executor example snippets


php composer.phar 

$local = new \gud3\executor\Local();
$file = $local->getFile($path_to_file, $file_name);

$local = new \gud3\executor\Ssh2($ip, $login, $password, $port);
$file = $local->getFile($path_to_file, $file_name);

$result = $local->setFile($path_to_file, $file_name, $content);