hexmode/php-gerrit

A simple interface for clients to interact with gerrit via the REST API

dev-master 2019-07-06 19:18 UTC

This package is auto-updated.

Last update: 2024-11-07 07:41:17 UTC


README

This is a simple PHP interface to interact with Gerrit’s REST API.

It was written when I saw pygerrit2.

Installation

To use phpGerrit in your project, simply:

composer require hexmode/php-gerrit

Usage

use Hexmode\PhpGerrit\GerritRestAPI;

$rest = new GerritRestAPI( 'https;//gerrit.wikimedia.org' );
$changes = $rest->get( "/changes/?q=owner:self status:open" );
foreach ( $changes as $change ) {
    var_dump( $change );
}