DEV Community

Cover image for Laravel GitHub Profile View Counter
Caneco
Caneco

Posted on

2 2

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.

Sentry workshop image

Sick of your mobile apps crashing?

Let Simon Grimm show you how to fix them without the guesswork. Join the workshop and get to debugging.

Save your spot β†’

Top comments (0)

Sentry image

See why 4M developers consider Sentry, β€œnot bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

πŸ‘‹ Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay