21/07
2017
dev-master
9999999-devGogs client on guzzle php
The Requires
The Development Requires
by Erik Seifert
Gogs client on guzzle php
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"; } } }
Gogs client on guzzle php