PHPackages                             nyholm/git-reviewer - 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. nyholm/git-reviewer

ActiveProject

nyholm/git-reviewer
===================

Find a good reviewer to your github pull request

0.2.0(2y ago)4864MITPHP

Since Nov 18Pushed 2y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (13)Versions (3)Used By (0)

Find reviewers
==============

[](#find-reviewers)

This is a small PHP (Symfony) application that find you reviewers to a Github pull request.

It is using a naive algorithm which:

1. First looks at the modified files in the PR
2. Do a `git blame` on each file to see who as modified the file
3. Sort the list of contributor, first contributor is the person that have changed the most files that the pull request touches

```
$ ./git-reviewer.php find 106 /path/to/local/repository --pretty-print

[
    {
        "email": "tobias.nyholm@gmail.com",
        "name": "Tobias Nyholm",
        "contributions": 3,
        "username": "Nyholm"
    },
    {
        "email": "ion.bazan@gmail.com",
        "name": "Ion Bazan",
        "contributions": 1,
        "username": "IonBazan"
    }
]

```

### Documentation

[](#documentation)

The first argument to `./git-reviewer.php` is the "command name". Here is a short description of each command name and their additional arguments and options.

#### cache:clear

[](#cacheclear)

Clears the application's cache. It does **not** clear the `var/storage`.

```
$ ./git-reviewer.php cache:clear

```

#### pull-request:base

[](#pull-requestbase)

Finds the branch that the pull request target.

```
$ ./git-reviewer.php pull-request:base 123 /path/to/local/repository

master

```

#### find

[](#find)

Get a list of possible reviewers.

```
$ ./git-reviewer.php find 123 /path/to/local/repository

[
    {
        "email": "tobias.nyholm@gmail.com",
        "name": "Tobias Nyholm",
        "contributions": 3,
        "username": "Nyholm"
    },
    ...
]

```

Options:

NameExampleDescriptionafter2020-01-01Only look at contributions after a specific date.ignore-path.env
 "config/\*"
"src/\*\*/Tests"Exclude paths and files when searching for contributors.
An astrix matches everything but "/" and double astrix
matches everything.no-usernameDon't search for the users' username. You will only get name and email.pretty-printMake the output more easy to read for humans.```
$ ./git-reviewer.php find 123 /path/to/local/repository --ignore-path "config/*" --ignore-path .env --after 2020-01-01 --no-username --pretty-print

```

Calls to Github API
-------------------

[](#calls-to-github-api)

Github allows some anonymous calls, but it is a good idea to specify an environment variable named `GITHUB_TOKEN`. That should contain a Github token with "api" permissions.

You can create such token in your Github account under ["Developer settings &gt; Personal access tokens"](https://github.com/settings/tokens).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

Total

2

Last Release

857d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/401ccc5eea13c60cf807ae982af00e368e2166e2f26d8eb541dcd881a57385bc?d=identicon)[Nyholm](/maintainers/Nyholm)

---

Top Contributors

[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (19 commits)")

### Embed Badge

![Health badge](/badges/nyholm-git-reviewer/health.svg)

```
[![Health](https://phpackages.com/badges/nyholm-git-reviewer/health.svg)](https://phpackages.com/packages/nyholm-git-reviewer)
```

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[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)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)

PHPackages © 2026

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