GitHub Profile Card

Create and share your Github profile Card


// Bruzu API key get yours at
$apiKey = "BRUZU-YOURKEY";

// How to get this token:- 
// No need to select any scope 
$token = ""; 

// Github username

$url = "".$id;

$context = stream_context_create(array(
    'http' => array(
        'header'  => "Authorization: token ".$token."\n"."User-Agent: PHP"
$data = json_decode(file_get_contents($url, false, $context), true);

$template = '';

$q  = [
    "a.src"=> $data['avatar_url'],
    "b.t"=> $data['name'],

$imgLink = $template."&".http_build_query($q);

$png = file_get_contents($imgLink."&ak=".$apiKey);
$base64 = 'data:image/png;base64,' . base64_encode($png);

// You can use this link into your HTML code 
// <img src="<?=$imgLink?>" >
How to share github profile? You can share it by username of generate image of your profile to share more details into an image.
What profile picture should i use for github? Any picture that represents your personality is a good fit for all your social media including GitHub