Making a View Counter for GitHub Repos - Easy PHP Tutorial

Published: 20 October 2020
on channel: Jonah Lawrence • Dev Pro Tips
2,444
38

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 localhost...  

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

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


On this page of the site you can watch the video online Making a View Counter for GitHub Repos - Easy PHP Tutorial with a duration of hours minute second in good quality, which was uploaded by the user Jonah Lawrence • Dev Pro Tips 20 October 2020, share the link with friends and acquaintances, this video has already been watched 2,444 times on youtube and it was liked by 38 viewers. Enjoy your viewing!