To run this php script, You will need a web server.
To set up server for php on windows: https://www.sitepoint.com/how-to-install-php-on-windows/
To set up server for php on Mac: https://www.mamp.info/en/mamp/mac/
MAMP example: If you create a folder with the name 'test', http://localhost/test/ is your correct url path.However, don't forget to check your port options and see which port is being used. You can see port options by going to MAMP>Preferences>ports.
For this project, I used php, jquery, bootstrap and datatable.
php is mainly being used to check languages' options and to create a curl to bypass cors security block.