DEV Community

Cover image for Github profile readme counter

Github profile readme counter

arturssmirnovs profile image Arturs Smirnovs ・1 min read

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. :)

Discussion (1)

Editor guide
codeperfectplus profile image