Gogs PHP API Client is a client written in PHP, to easily query a Gogs (Go Git Service) API client.
Joachim M. Giæver fe49d70893 Merge branch 'master' of git.giaever.org:joachimmg/gogs-php-api-client | 6 tahun lalu | |
---|---|---|
client | 6 tahun lalu | |
lib | 6 tahun lalu | |
.gitignore | 6 tahun lalu | |
LICENSE | 6 tahun lalu | |
README.md | 6 tahun lalu | |
index.php | 6 tahun lalu |
A client to query Gogs (https://gogs.io) API from PHP.
A guide on how to use will come shortly!
Clone the repo. Set the API_URL
and API_TOKEN
in the index-file.
$client = new \Client\GogsAPI(API_URL, API_TOKEN);
$me = $client->user();
$other = $client->user("username");
$repos = $me->get("/repos")->load();
// Loop through every repo
for($repo = $repos->current(); $repo != false; $repo = $repos->next())
var_dump($repo);