Download the PHP package nyholm/git-reviewer without Composer

On this page you can find all versions of the php package nyholm/git-reviewer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package git-reviewer

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

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

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

pull-request:base

Finds the branch that the pull request target.

find

Get a list of possible reviewers.

Options:

Name Example Description
after 2020-01-01 Only 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-username Don't search for the users' username. You will only get name and email.
pretty-print Make the output more easy to read for humans.

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 > Personal access tokens".


All versions of git-reviewer with dependencies

PHP Build Version
Package Version
Requires symfony/console Version ^6.4 || ^7.0
symfony/dependency-injection Version ^6.4 || ^7.0
symfony/config Version ^6.4 || ^7.0
symfony/yaml Version ^6.4 || ^7.0
symfony/event-dispatcher Version ^6.4 || ^7.0
symfony/filesystem Version ^6.4 || ^7.0
symfony/http-client Version ^6.4 || ^7.0
nyholm/psr7 Version ^1.3
knplabs/github-api Version ^v3.13.0
symfony/process Version ^6.4 || ^7.0
symfony/cache Version ^6.4 || ^7.0
bref/logger Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package nyholm/git-reviewer contains the following files

Loading the files please wait ....