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

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay