PHPackages                             peterrehm/gh - 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. peterrehm/gh

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

peterrehm/gh
============

Git/GitHub tool

v1.0.1(8y ago)0363MITPHPPHP ^7.1

Since Dec 15Pushed 7y ago1 watchersCompare

[ Source](https://github.com/peterrehm/gh)[ Packagist](https://packagist.org/packages/peterrehm/gh)[ RSS](/packages/peterrehm-gh/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (6)Versions (6)Used By (0)

gh - GitHub/Git toolkit
=======================

[](#gh---githubgit-toolkit)

This tool aims to provide support for common git/GitHub functionality and evolves from being a simple mergetool to provide handy shortcuts to frequently used commands.

gh expects an composer.json with a valid name in the git root directory. If you do not have a composer.json and you are executing GitHub related commands like the merge command you need to specify the username and the repository.

gh also expects by convention a remote with the organization name. If such does not exist gh creates one when a command needs it.

Start with

```
./gh configure

```

to setup your GitHub token.

Afterwards use `./gh` to get an overview over the available functions.

Installation
============

[](#installation)

`gh` can be installed via composer.

```
    composer global require 'peterrehm/gh=dev-master'

```

Make sure you have defined the following export path as well:

```
    export PATH=~/.composer/vendor/bin:$PATH

```

When using Zsh the export path in .zshrc must be updated. Also you should use the complete path instead of ~/.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

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

Total

5

Last Release

3089d ago

PHP version history (3 changes)v1.0.0-alpha1PHP &gt;=5.4

v1.0.0PHP ^7.0

v1.0.1PHP ^7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/70d9c70616f55598c43a61d46df2d801314f3339cc07e37b89405de78b6d2322?d=identicon)[peterrehm](/maintainers/peterrehm)

---

Top Contributors

[![peterrehm](https://avatars.githubusercontent.com/u/2010989?v=4)](https://github.com/peterrehm "peterrehm (36 commits)")

### Embed Badge

![Health badge](/badges/peterrehm-gh/health.svg)

```
[![Health](https://phpackages.com/badges/peterrehm-gh/health.svg)](https://phpackages.com/packages/peterrehm-gh)
```

###  Alternatives

[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19462.3M1.3k](/packages/drupal-core)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[shyim/danger-php

Port of danger to PHP

8544.9k](/packages/shyim-danger-php)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)

PHPackages © 2026

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