PHP code example of artarts36 / git-handler-remote
1. Go to this page and download the library: Download artarts36/git-handler-remote 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/ */
artarts36 / git-handler-remote example snippets
use ArtARTs36\GitHandler\Factory\RemoteGitFactory;
use ArtARTs36\ShellCommand\Executors\Ssh\Connection;
$connection = Connection::withPassword('host', 'user', 'password');
$git = (new RemoteGitFactory($connection))->factory('/var/web/project/');