MD Nasirul Islam
MD Nasirul Islam

Reputation: 543

How to show my public repositories of github, on my Website

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

Answers (1)

delboy1978uk
delboy1978uk

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

Related Questions