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

0.1.0 2026-01-01 05:15 UTC

This package is auto-updated.

Last update: 2026-01-01 15:21:25 UTC


README

GitHub Sponsors Automation Supported PHP Version Downloads

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.