PHP code example of ichhabrecht / git-wrapper

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

    

ichhabrecht / git-wrapper example snippets


$gitWrapper = new IchHabRecht\GitWrapper\GitWrapper();

$gitRepository = $gitWrapper->cloneRepository('https://github.com/IchHabRecht/git-wrapper.git', __DIR__ . '/git-wrapper');

$gitWrapper = new IchHabRecht\GitWrapper\GitWrapper();

$gitRepository = $gitWrapper->getRepository(__DIR__ . '/git-wrapper');
$gitRepository->fetch();
$gitRepository->pull();