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 8y ago1 watchersCompare

[ Source](https://github.com/peterrehm/gh)[ Packagist](https://packagist.org/packages/peterrehm/gh)[ RSS](/packages/peterrehm-gh/feed)WikiDiscussions master Synced 2d 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 52% 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

3137d 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://avatars.githubusercontent.com/u/2010989?v=4)[Peter Rehm](/maintainers/peterrehm)[@peterrehm](https://github.com/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

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[drupal/core

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

21866.0M1.7k](/packages/drupal-core)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M420](/packages/drupal-core-recommended)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M572](/packages/shopware-core)[phpactor/phpactor

PHP refactoring and intellisense tool for text editors

1.9k17.1k1](/packages/phpactor-phpactor)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)

PHPackages © 2026

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