DEV Community

Cover image for Github profile readme counter
Arturs Smirnovs
Arturs Smirnovs

Posted on

5

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

Top comments (1)

Collapse
 
codeperfectplus profile image
Deepak Raj

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay