require_once 'vendor/autoload.php'; $client = new Google_Client(); $client->setApplicationName('My Google API Client');In this example, we require the autoload.php file that loads the Google API Client library. We then create a new Google_Client object and use the setApplicationName method to set the name of the client application to "My Google API Client". Package library: google/apiclient.