DEV Community

Cover image for Laravel GitHub Profile View Counter
Caneco
Caneco

Posted on

Laravel GitHub Profile View Counter

This package allows you to track Github profile views and display them in your profile readme, for free.

This project was inspired Artem Golubin's post How to track and display profile views on GitHub.

As part of recent design changes, GitHub has introduced READMEs for profiles. By creating a repo with your name and adding README.md file with markdown to it, you can now add a rich description of yourself.

Installation

You can install the package via composer:

composer require caneco/laravel-github-profile-view-counter

You can publish and run the migrations with:

php artisan vendor:publish --provider="Caneco\GithubProfileViewCounter\GithubProfileViewCounterServiceProvider" --tag="migrations"
php artisan migrate

Usage

Just visit yourdomain.com/github-profile-view-counter.svg, you should see your badge with visits++.

Done

GitHub Profile example with badge

Cheating

You can always fill your table with a lot of rows to make yourself famous! But, play nice 😉.

Contributing?

Please see CONTRIBUTING doc for details.

Top comments (0)