Reputation: 543
I want to show all the public repositories of my Github account on my website. The website is created fully on laravel. Users can view my public repositories from my website without going to my github profile.
Upvotes: 2
Views: 341
Reputation: 12375
You can try this awesome library from 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');
Upvotes: 1