PHP code example of ghostwriter / github-cli
1. Go to this page and download the library: Download ghostwriter/github-cli 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/ */
ghostwriter / github-cli example snippets
$gh = \Ghostwriter\GitHubCli\GitHubCli::new();
$result = $gh->issueCreate('--title', 'Bug', '--body', 'Something broke');
$result->exitCode(); // int
$result->stdout(); // string
$result->stderr(); // string