There seems to be some gaps in the instructions, a little help?
Step 1: Easily access Google APIs from PHP, sounds easy!
Step 2: Install the library, you can install the library by adding it as a dependency to your "composer.json". Never heard of composer, never used json. All I need to do is add "require": {"google/apiclient": "1.0.*@beta"} to my composer.json
Step 3: Composer requires Linux, but isn't the whole point of using App Engine so I don't have to deal with Linux? Ok, setup Debian on Compute Engine and added the following, "sudo curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer" per the instructions.
Step 4: Composer Basic usage... all the Google web page says to do is add the following to Composer, "require": {"google/apiclient": "1.0.*@beta"} so that's of no help. The instructions on the page say the following,
To start using Composer in your project, all you need is a composer.json file. This file describes the dependencies of your project and may contain other metadata as well.
They conveniently forget to explain where/what is the composer.json file? Is this just something people automatically know?
I just want to start using the gogole-api-php-client, but the autoload.php file is gone from their website, and when I try to do it manually it keeps saying I am missing GuzzleHttp/Collection. So I thought I would try to put it together in Composer because it's so "easy". Does anyone know of a simple set of steps/instructions to plow through this without spending the next 10 hours learning json, composer, and linux? Does anyone actually have this thing working, because I'm starting to think it doesn't even work. Both of these websites need to take ease off on their overuse of the words "easy" and "simple" because I don't think they understand the meaning of those words. "Excessively complicated" and "extremely vague" would suit them better.
The documentation had been pointing to the wrong (unstable aka master) branch it seems. You should be able to just install the v1-master branch and get it running. The HelloAnalytics example should work with the v1-master for example.
git clone -b v1-master https://github.com/google/google-api-php-client.git
To answer your the question in the title more directly, if you for example want to run the unstable branch - Install composer (composer.phar) to your project folder and just run the command:
php composer.phar require "google/apiclient:~2.0@dev"
This should result in a folder called vendor which will contain autoload.php. Just include this row in your code and you should be able to get it running.
require_once 'vendor/autoload.php';
I'm quite new to this so someone else might be able to explain this better.