PHPackages                             gboddin/php-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. [CLI &amp; Console](/categories/cli)
4. /
5. gboddin/php-github-cli

ActiveProject[CLI &amp; Console](/categories/cli)

gboddin/php-github-cli
======================

Github PHP CLI client

0.2.11(8y ago)12581[2 issues](https://github.com/gboddin/php-github-cli/issues)MITPHP

Since Sep 27Pushed 7y agoCompare

[ Source](https://github.com/gboddin/php-github-cli)[ Packagist](https://packagist.org/packages/gboddin/php-github-cli)[ RSS](/packages/gboddin-php-github-cli/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (10)Dependencies (5)Versions (20)Used By (0)

PHP github CLI tool
===================

[](#php-github-cli-tool)

Build status
------------

[](#build-status)

ServicemasterdevelopCI Status[![Status](https://camo.githubusercontent.com/e6b090c34748a99e82a60b2aecef153036733e46eaf66fbdcc240e389a31f60c/68747470733a2f2f686f6c642d6f6e2e6e6f626f64792e72756e2f6170692f6261646765732f67626f6464696e2f7068702d6769746875622d636c692f7374617475732e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/e6b090c34748a99e82a60b2aecef153036733e46eaf66fbdcc240e389a31f60c/68747470733a2f2f686f6c642d6f6e2e6e6f626f64792e72756e2f6170692f6261646765732f67626f6464696e2f7068702d6769746875622d636c692f7374617475732e7376673f6272616e63683d6d6173746572)[![Status](https://camo.githubusercontent.com/9d14849f4c1ce5dd988eeb620d539d93ab6bc69aa1eba60dcc5ce918e953d96f/68747470733a2f2f686f6c642d6f6e2e6e6f626f64792e72756e2f6170692f6261646765732f67626f6464696e2f7068702d6769746875622d636c692f7374617475732e7376673f6272616e63683d646576656c6f70)](https://camo.githubusercontent.com/9d14849f4c1ce5dd988eeb620d539d93ab6bc69aa1eba60dcc5ce918e953d96f/68747470733a2f2f686f6c642d6f6e2e6e6f626f64792e72756e2f6170692f6261646765732f67626f6464696e2f7068702d6769746875622d636c692f7374617475732e7376673f6272616e63683d646576656c6f70)Intro
-----

[](#intro)

This tool is meant to be used in by human and automation tools with PHP projects.

Install
-------

[](#install)

```
composer install gboddin/php-github-cli
```

Configuration
-------------

[](#configuration)

The tool uses Github tokens to authenticate. They can be set in 3 ways :

- Using the GITHUB\_API\_TOKEN environment variable
- Global config file ( ~/.gitconfig )
- Local config file ( ./.git/config )

The git config file should look as follow :

```
[github]
token=xxxxxxxxx
```

Usage
-----

[](#usage)

```
ghcli pr:comment octocat Hello-World 1 "Hello"
ghcli status:set octocat Hello-World 33375d5f193cfa8d0fe2998ec312c871639257bf -s success -c my/context -t http://www.google.com -d "You have created/updated a commit status my friend"
ghcli deploy:create octocat Hello-World -r 33375d5f193cfa8d0fe2998ec312c871639257bf -e Staging -d "Super deploy"
ghcli deploy:list octocat Hello-World
ghcli deploy:update octocat Hello-World 23079543 -s error -d "Failed it !"
ghcli branch:create octocat Hello-World -t depedency/2.3.78 -s master
ghcli ref:create octocat HelloWorld -r refs/heads/depedency/2.3.78 -s bdb276f3227a19e826d8d511cfd53639153e0a6a
ghcli file:update octocat HelloWorld build.properties.lock 'Updated to version 2.3.78' 'depedency.version = 2.3.78' 'depedency/2.3.78' -c
ghcli pr:create octocat HelloWorld -t "Minor upgrade 2.3.78" -s depedency/2.3.78  -b master -d "Minor upgrade depedency/2.3.78"
ghcli branch:protect octocat HelloWorld master -T qa-support -t qa-support
```

Current modules
---------------

[](#current-modules)

```
ghcli version 0.2.8

Usage:
  command [options] [arguments]

Options:
  -h, --help            Display this help message
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi            Force ANSI output
      --no-ansi         Disable ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Available commands:
  help            Displays help for a command
  list            Lists commands
 branch
  branch:create   Create a branch from another branch
  branch:protect  Protect a branch
 deploy
  deploy:create   Creates a deployment
  deploy:list     List deployments for a repo
  deploy:update   Creates a deployment status
 file
  file:update     Updates a file
 pr
  pr:comment      Comment a pull request
  pr:create       Create a pull request
 ref
  ref:create      Create a branch from another ref
 status
  status:set      Creates/updates a commit status

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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 ~13 days

Recently: every ~40 days

Total

18

Last Release

2936d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9c5706004cb7e6ff55d100c8649a7c33039c28f9cf7b3af54343bb5db8d874db?d=identicon)[gboddin](/maintainers/gboddin)

---

Top Contributors

[![gboddin](https://avatars.githubusercontent.com/u/4395092?v=4)](https://github.com/gboddin "gboddin (53 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[crazywhalecc/static-php-cli

Build single static PHP binary, with PHP project together, with popular extensions included.

1.8k13.9k](/packages/crazywhalecc-static-php-cli)[matthiasnoback/symfony-console-form

Use Symfony forms for Console command input

368264.8k8](/packages/matthiasnoback-symfony-console-form)[shel/neos-terminal

Neos CMS Ui terminal for running Eel expressions and other commands

1441.3k](/packages/shel-neos-terminal)

PHPackages © 2026

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