如何在我的网站上显示我的github公共存储库

时间:2019-07-08 11:56:30

标签: php html laravel api github

我想在我的网站上显示我的Github帐户的所有公共存储库。该网站完全在laravel上创建。用户可以从我的网站查看我的公共存储库,而无需访问我的github个人资料。

1 个答案:

答案 0 :(得分:0)

您可以从Packagist尝试这个很棒的库

composer install knplabs/github-api

https://packagist.org/packages/knplabs/github-api

<?php

require_once 'vendor/autoload.php';

$client = new \Github\Client();
$repositories = $client->api('user')->repositories('delboy1978uk');
相关问题