Downloading files from Google Cloud Storage using the PHP API

Downloading files was something else I was barely able to piece together. I found an outdated version, but the SDK had changed enough that it wasn’t operable.

If you’re doing this in a class or method and just want to pass $gcs, then you can get the client with…