Making a View Counter for GitHub Repos - Easy PHP Tutorial

Published: 20 October 2020
on channel: Jonah Lawrence • Dev Pro Tips
1,901
31

View Counter Beginner Tutorial in PHP for websites, Github repos, and profiles on many sites.

❤ Subscribe: http://bit.ly/SubscribeDPT

In this tutorial I will show you how to create a PHP file which will output an svg image of the current number of views your page has gotten. You can put this on a server and use the URL as the image source to easily get a live view counter on you Github repo or profile page which will automatically update. This can also be used on personal websites, Patreon pages, Wordpress posts, and much more.

How to set up XAMPP for running PHP
►    • How to run your HTML/PHP site on loca...  

How to deploy your app for free on Heroku
▶    • Heroku Tutorial - Deploy your app or ...  

The editor I will be using is Visual Studio Code with a custom theme based on Material Theme Darker High Contrast.

👨‍💻 My code on GitHub
► https://github.com/DenverCoder1/Simpl...

📺 In this video:
0:00 - Intro
0:33 - Creating the workspace
1:37 - Incrementing a file
5:56 - Outputting an image
10:39 - Disabling cache
12:11 - Short number format
14:50 - Putting your image on GitHub
15:59 - Conclusion

🖥 More Web Development tutorials
▶    • Web Development  

💻 More tutorials
►    • Tutorials  

🙋‍♂️ Find me on other channels
Reddit 👽   / devprotips  
Twitter ✍   / denvercoder1  
Github 👨‍💻 https://github.com/DenverCoder1
Sponsor 💞 https://github.com/sponsors/DenverCoder1
Buy me a coffee ☕ https://ko-fi.com/jlawrence

💖 SPONSORS 💖
Get your username or a link to your channel here by sponsoring on Github
▶ https://github.com/sponsors/DenverCoder1

🎁 GET FREE STUFF WHILE SUPPORTING MY TUTORIALS
► https://bit.ly/jlawrencepromos


Watch video Making a View Counter for GitHub Repos - Easy PHP Tutorial online without registration, duration hours minute second in high quality. This video was added by user Jonah Lawrence • Dev Pro Tips 20 October 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,901 once and liked it 31 people.