PHPackages                             ghostwriter/github-cli - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ghostwriter/github-cli

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ghostwriter/github-cli
======================

PHP wrapper for GitHub CLI (gh)

0.1.0(4mo ago)0421.2k↓30.4%BSD-4-ClausePHPPHP ~8.4.0 || ~8.5.0CI passing

Since Jan 1Pushed 1mo agoCompare

[ Source](https://github.com/ghostwriter/github-cli)[ Packagist](https://packagist.org/packages/ghostwriter/github-cli)[ Docs](https://github.com/ghostwriter/github-cli)[ GitHub Sponsors](https://github.com/sponsors/ghostwriter)[ RSS](/packages/ghostwriter-github-cli/feed)WikiDiscussions 0.1.x Synced 1mo ago

READMEChangelog (1)Dependencies (6)Versions (14)Used By (0)

Github Cli
==========

[](#github-cli)

[![GitHub Sponsors](https://camo.githubusercontent.com/86ba4ed119ffe82ef0b1ab82a478db107b9a6b4df244f2b6be60b5a335a1b259/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73706f6e736f72732f67686f73747772697465723f6c6162656c3d53706f6e736f722b4067686f73747772697465722f6769746875622d636c69266c6f676f3d4769744875622b53706f6e736f7273)](https://github.com/sponsors/ghostwriter)[![Automation](https://github.com/ghostwriter/github-cli/actions/workflows/automation.yml/badge.svg)](https://github.com/ghostwriter/github-cli/actions/workflows/automation.yml)[![Supported PHP Version](https://camo.githubusercontent.com/ce19931ee449db35ad8c05bb39da007f84b8091a51f704af52824abf9cb0b371/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f7068702f67686f73747772697465722f6769746875622d636c693f636f6c6f723d383839326266)](https://www.php.net/supported-versions)[![Downloads](https://camo.githubusercontent.com/c0d6834e7ed493b4a53ce3ebc1b9eb5c3d462ec0af41d3a37300684e4ac615fe/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f64742f67686f73747772697465722f6769746875622d636c693f636f6c6f723d626c7565)](https://packagist.org/packages/ghostwriter/github-cli)

PHP wrapper for GitHub CLI (`gh`).

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require ghostwriter/github-cli
```

### Star ⭐️ this repo if you find it useful

[](#star-️-this-repo-if-you-find-it-useful)

You can also star (🌟) this repo to find it easier later.

Usage
-----

[](#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

[](#documentation)

Please see [docs/](./docs/) for more information on how to use this package.

### Credits

[](#credits)

- [Nathanael Esayeas](https://github.com/ghostwriter)
- [All Contributors](https://github.com/ghostwriter/wip/contributors)

### Changelog

[](#changelog)

Please see [CHANGELOG.md](./CHANGELOG.md) for more information on what has changed recently.

### License

[](#license)

Please see [LICENSE](./LICENSE) for more information on the license that applies to this project.

### Security

[](#security)

Please see [SECURITY.md](./SECURITY.md) for more information on security disclosure process.

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance84

Actively maintained with recent releases

Popularity36

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~28 days

Total

4

Last Release

54d ago

Major Versions

0.2.x-dev → 1.0.x-dev2026-01-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/1dbb0131801cc451dad9917ab29aa823b25d7eebc9f3875a9d481d109bdb44ee?d=identicon)[ghostwriter](/maintainers/ghostwriter)

---

Top Contributors

[![ghostwriter](https://avatars.githubusercontent.com/u/9754361?v=4)](https://github.com/ghostwriter "ghostwriter (270 commits)")

---

Tags

ghghostwritergithub-cliphpgithubghghostwritergithub-cli

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ghostwriter-github-cli/health.svg)

```
[![Health](https://phpackages.com/badges/ghostwriter-github-cli/health.svg)](https://phpackages.com/packages/ghostwriter-github-cli)
```

###  Alternatives

[unicodeveloper/laravel-emoji

A Laravel 5 Package for Using &amp; Working With Emojis

21024.9k](/packages/unicodeveloper-laravel-emoji)[unicodeveloper/laravel-identify

A Laravel 5 Package Provider to Identify/detect a user's browser, device, operating system and Language

19322.0k](/packages/unicodeveloper-laravel-identify)[jwage/changelog-generator

Generate a markdown changelog document from a GitHub milestone.

10372.7k](/packages/jwage-changelog-generator)[producer/producer

Tools for releasing library packages; supports Git, Mercurial, Github, Gitlab, and Bitbucket.

10418.7k2](/packages/producer-producer)[enomotodev/php-cs-fixer-commit

Create commit of php-cs-fixer

18117.3k](/packages/enomotodev-php-cs-fixer-commit)[povils/figlet

Figlet text generator - PHP

616.8k4](/packages/povils-figlet)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
