The PHP script is from here.
Go to https://github.com/settings/developers, create a new OAuth App, and put your client ID and client secret in an .env file.
Contents of your env file should be:
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
Run the index.php file
php -S localhost:8000
Install pip requirements
pip3 install -r requirements.txt
Run the index.py file
python3 index.py
View http://localhost:8000/ in your browser!