talira

Google APIs Client Library for PHP

Google's official PHP client for Gmail, Drive, YouTube and other Google APIs

open sourceApache-2.0free

The Google APIs Client Library for PHP lets server-side PHP code call Google APIs such as Gmail, Drive and YouTube. It's officially supported by Google, installs with Composer as google/apiclient, and relies on google/apiclient-services for up-to-date wrappers of more than 200 Google API services, which you can trim to the ones you use. For Google Cloud Platform APIs like Cloud Storage, Pub/Sub and Compute Engine, Google recommends its separate Google Cloud client libraries instead.

Problems it solves

  • call the Gmail or Google Drive API from PHP
  • use Google APIs from a PHP backend with Composer
  • upload to YouTube from a PHP server

Features

  • official Google client for Gmail, Drive, YouTube and other Google APIs
  • up-to-date wrappers for over 200 Google API services
  • remove unused service wrappers to keep deployments small
  • installs with Composer

Limitations

  • In maintenance mode: Google fixes critical bugs and security issues but adds no new features, and recommends the Google Cloud client libraries for Cloud Platform APIs.1
  • It doesn't pin google/apiclient-services, so you should pin that package yourself before production to avoid API wrappers with breaking changes.1