This is a simple PHP interface to interact with Gerrit’s REST API.
It was written when I saw pygerrit2.
To use phpGerrit in your project, simply:
composer require hexmode/php-gerrit
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 );
}