ghostwriter / github-cli
PHP wrapper for GitHub CLI (gh)
Fund package maintenance!
ghostwriter
Installs: 3 764
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/ghostwriter/github-cli
Requires
- php: ~8.4.0 || ~8.5.0
- ext-mbstring: *
- ghostwriter/container: ^6.0.1
- ghostwriter/shell: ^0.1.1
Requires (Dev)
- ext-xdebug: *
- ghostwriter/coding-standard: dev-main
- mockery/mockery: ^1.6.12
- phpunit/phpunit: ^12.5.4
- symfony/var-dumper: ^8.0.3
This package is auto-updated.
Last update: 2026-01-01 15:21:25 UTC
README
PHP wrapper for GitHub CLI (gh).
Installation
You can install the package via composer:
composer require ghostwriter/github-cli
Star ⭐️ this repo if you find it useful
You can also star (🌟) this repo to find it easier later.
Usage
Every method accepts variadic string ...$arguments
This means:
- Arguments are passed exactly like the CLI
- No escaping issues
Example:
gh issue create --title "Bug" --body "Something broke"
Becomes:
$gh = \Ghostwriter\GitHubCli\GitHubCli::new(); $result = $gh->issueCreate('--title', 'Bug', '--body', 'Something broke'); $result->exitCode(); // int $result->stdout(); // string $result->stderr(); // string
Documentation
Please see docs/ for more information on how to use this package.
Credits
Changelog
Please see CHANGELOG.md for more information on what has changed recently.
License
Please see LICENSE for more information on the license that applies to this project.
Security
Please see SECURITY.md for more information on security disclosure process.