Arturs Smirnovs
Posted on July 18, 2020
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: https://github.com/arturssmirnovs/github-profile-views-counter
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. :)
💖 💪 🙅 🚩
Arturs Smirnovs
Posted on July 18, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.