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";
33 use function seekat\API\Links\next;
35 $cli = new http\Client("curl", "seekat");
37 "max_host_connections" => 10,
38 "max_total_connections" => 50,
41 $log = new Monolog\Logger("seekat");
42 $log->pushHandler(new Monolog\Handler\StreamHandler(STDERR, Monolog\Logger::WARNING));
45 "Authorization" => "token ".getenv("GITHUB_TOKEN")
49 $repos = yield $api->users->m6w6->repos([
50 "visibility" => "public",
51 "affiliation" => "owner"
57 foreach ($repos as $repo) {
58 $batch[] = $repo->hooks();
60 foreach (yield $batch as $key => $hooks) {
64 printf("%s:\n", $repos->{$key}->name);
65 foreach ($hooks as $hook) {
66 if ($hook->name == "web") {
67 printf("\t%s\n", $hook->config->url);
69 printf("\t%s\n", $hook->name);
87 composer require m6w6/seekat
91 A comprehensive list of changes can be obtained from the
92 [releases overview](https://github.com/m6w6/seekat/releases).
96 seekat is licensed under the 2-Clause-BSD license, which can be found in
97 the accompanying [LICENSE](./LICENSE) file.
101 All forms of contribution are welcome! Please see the bundled
102 [CONTRIBUTING](./CONTRIBUTING.md) note for the general principles followed.
104 The list of past and current contributors is maintained in [THANKS](./THANKS).