File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,23 @@ public function find($keyword, array $params = array())
39
39
return $ this ->get ('legacy/repos/search/ ' .rawurlencode ($ keyword ), array_merge (array ('start_page ' => 1 ), $ params ));
40
40
}
41
41
42
+ /**
43
+ * List all public repositories.
44
+ *
45
+ * @link https://developer.github.com/v3/repos/#list-all-public-repositories
46
+ *
47
+ * @param int|null $id The integer ID of the last Repository that you’ve seen.
48
+ *
49
+ * @return array list of users found
50
+ */
51
+ public function all ($ id = null )
52
+ {
53
+ if (!is_int ($ id )) {
54
+ return $ this ->get ('repositories ' );
55
+ }
56
+ return $ this ->get ('repositories?since= ' . rawurldecode ($ id ));
57
+ }
58
+
42
59
/**
43
60
* Get the last year of commit activity for a repository grouped by week.
44
61
*
You can’t perform that action at this time.
0 commit comments