Skip to content

Simple Php to get how many views are on your Github profile.

Notifications You must be signed in to change notification settings

cdfrm/github-views-count

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github profile views counter

Simple Php to get how many views are on your Github profile.

Php Nginx Docker Php Php

Introduction

How many times your GitHub profile has been viewed and displays them in your profile for free.

We can only increment the counter for each request from the GitHub proxy server, we don't know who initiated it.

Usage

This is solution-ready-to-use. It was hosted by myself on my little RPi-4. I don't want to call it "Cloud" at all.

Create GitHub profile repository

Github magic: Manage your Profile

Embedding ounter to GitHub profile

By adding this Markdown code to your README.md. You can display the view counter anywhere you want.

![](https://api.nosense.lol/ghvc/?username=your-username)

Like this:

Fact:

All this views could be faked. So don't spam my poor server. You can deploy a standalone solution to draw any views count you want. This project was built in Docker, it will take less than minutes to deploy it.

Step 1: Pull the repo

git clone https://github.com/cdfrm/github-views-count.git

Step 2: Install Docker and Docker Compose

How to install

Step 3: Run project

cd github-views-count

To Start:

make start

To Stop:

make stop

Access:

You can change .env.sample file to use your own config. Current config will work with Docker Built-in Stack.

Access: http://127.0.0.1/ghvc/?username=your-username

DB Access: Host: http://127.0.0.1:8080 User Default: root Password default: root

Personalize Badge

Color:

You can use any HEX color (without # prefix) or predefinded color on this:

![](https://api.nosense.lol/ghvc/?username=your-github-username&color=green)

Or

![](https://api.nosense.lol/ghvc/?username=your-github-username&color=dc143c)

color demo
brightgreen
green
yellow
yellowgreen
orange
red
blue
grey
lightgrey
blueviolet
ff69b4

Label:

By defautl it will be: "Profile Views". You can change this by the 'label' param. Space will be replace by +.

![](https://api.nosense.lol/ghvc/?username=your-github-username&label=Custom+Label)

Styles:

By defautl it will be: "for-the-badge". You can change this by the 'style' param.

![](https://api.nosense.lol/ghvc/?username=your-github-username&style=flat)

style demo
flat
flat-square
plastic
for-the-badge

License

GPLv3 © Pham Dai

About

Simple Php to get how many views are on your Github profile.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published