First, install the Google Cloud Client Library
with composer and require it into your project:
If you are running your app on Google Compute Engine, you won't need to worry about supplying connection configuration options to the library— we figure that out for you.
However, if you're running your app elsewhere, you will need to provide project details to authenticate API requests.
The full set of options which can be passed to the ServiceBuilder and sub-modules are outlined here.