DEV Community

Cover image for Github profile readme counter
Arturs Smirnovs
Arturs Smirnovs

Posted on

Github profile readme counter

Looks like github new feature that you can create readme file to your profile has gone viral..

So it got me thinking if you can create views counter for that..

I made this super simple Yii2 Framework system that records views counts for your profile..

Check repo:

Code turned out to be very simple.. 5 columns in database:

id, profile, views, create_time, update_time.

Few lines of code that records views++ and then just simple svg image display without cache.

Simple and fun weekend project.

This is my first post. :)

Top comments (1)

codeperfectplus profile image
Deepak Raj