b-connect/gogs-client

There is no license information available for the latest version (dev-master) of this package.

Gogs client on guzzle php

dev-master 2017-07-21 12:38 UTC

This package is auto-updated.

Last update: 2024-11-21 21:09:26 UTC


README

Chainable

use bconnect\GogsClient\GogsService;

$service = new GogsService('http://try.gogs.io/api/v1/', 'admin', 'admin');

foreach ($orgs->getOrganisations() as $org) {
  print $org->getUsername() . "\n";
  foreach ($org->getRepositories() as $rep) {
    print "----" . $rep->getFullname() . "\n";
    try {
      $rep->getFileContent('master', 'composer.json');
      print "------------- HAS COMPOSER\n";
    } catch (\Exception $ex) {
      print "------------- NO COMPOSER\n";
    }
  }
}