These samples show how to use the Google Cloud Job Discovery API from PHP.
-
Enable APIs - Enable the Job Discovery API and create a new project or select an existing project.
-
Activate your Credentials - If you do not already have an active set of credentials, create and download a JSON Service Account key. Set the environment variable
GOOGLE_APPLICATION_CREDENTIALSas the path to the downloaded JSON file. -
Clone the repo and cd into this directory
$ git clone https://github.com/GoogleCloudPlatform/php-docs-samples $ cd php-docs-samples/jobs -
Install dependencies via Composer. Run
php composer.phar install(if composer is installed locally) orcomposer install(if composer is installed globally). -
Run
php quickstart.php.
- See CONTRIBUTING.md
- See LICENSE