Complete the steps described in the Apps Script API Quickstart, and in about five minutes you'll have a simple PHP command-line application that makes requests to the Apps Script API.
Before running this quickstart, be sure you have Composer installed globally.
composer install- Follow the steps in the quickstart instructions to download your developer
credentials and save them in a file called
credentails.jsonin this directory.
php quickstart.php