PHP code example of jprodrigues70 / laravel-ghass

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

    

jprodrigues70 / laravel-ghass example snippets




$ghass = new \Ghass\Ghass();
$data = $ghass->file('index.html');
$ghass->delete('index.html', $data['sha']);


$ghass->file($path);

$ghass->post($path, $data, $commitMessage);

$ghass->put($path, $data, $sha, $commitMessage = '');

$ghass->delete($path, $sah, $commitMessage = '');