3 [![Build Status](https://travis-ci.org/m6w6/seekat.svg)](https://travis-ci.org/m6w6/seekat)
5 Fluent Github API access with PHP-7 and [ext-http](https://github.com/m6w6/ext-http).
16 $api->repos->m6w6->seekat->readme->as("html")->then(function($readme) {
30 require_once __DIR__."/../vendor/autoload.php";
34 $cli = new http\Client("curl", "seekat");
36 "max_host_connections" => 10,
37 "max_total_connections" => 50,
40 $log = new Monolog\Logger("seekat");
41 $log->pushHandler((new Monolog\Handler\StreamHandler(STDERR))->setLevel(Monolog\Logger::WARNING));
44 "Authorization" => "token ".getenv("GITHUB_TOKEN")
48 $repos = yield $api->users->m6w6->repos([
49 "visibility" => "public",
50 "affiliation" => "owner"
53 $next = $repos->next();
56 foreach ($repos as $repo) {
57 $batch[] = $repo->hooks();
59 foreach (yield $batch as $key => $hooks) {
63 printf("%s:\n", $repos->{$key}->name);
64 foreach ($hooks as $hook) {
65 if ($hook->name == "web") {
66 printf("\t%s\n", $hook->config->url);
68 printf("\t%s\n", $hook->name);
86 composer require m6w6/seekat
90 A comprehensive list of changes can be obtained from the
91 [releases overview](https://github.com/m6w6/seekat/releases).
95 seekat is licensed under the 2-Clause-BSD license, which can be found in
96 the accompanying [LICENSE](./LICENSE) file.
100 All forms of contribution are welcome! Please see the bundled
101 [CONTRIBUTING](./CONTRIBUTING.md) note for the general principles followed.
103 The list of past and current contributors is maintained in [THANKS](./THANKS).