hexmode / php-gerrit
A simple interface for clients to interact with gerrit via the REST API
dev-master
2019-07-06 19:18 UTC
Requires
- php: >=7.3
- fduch/netrc: ~2.0
- guzzlehttp/guzzle: ~6.0
- hexmode/http-basic-auth: *
- psr/log: ^1.1@dev
- splitbrain/php-cli: dev-master
- wikimedia/at-ease: ~2.0
Requires (Dev)
- jakub-onderka/php-parallel-lint: dev-master
- mediawiki/mediawiki-codesniffer: dev-master
- vimeo/psalm: ^3.0@dev
This package is auto-updated.
Last update: 2024-12-07 07:49:45 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 ); }