@@ -98,64 +98,7 @@ var_dump($response->getTranslations()[0]);
9898
9999### Authentication
100100
101- #### Note
102- This quickstart is built with local development in mind. The steps for deploying your project are
103- different depending on the environment you use. Here we provide some basic instruction in how to get
104- started with deployment of your project:
105-
106- * For applications running elsewhere, authentication is usually accomplished using a Service
107- Account.
108-
109- For more information on obtaining Service Account credentials see our
110- [ Authentication Guide] ( https://cloud.google.com/docs/authentication/production#manually ) . Set the
111- ` GOOGLE_APPLICATION_CREDENTIALS ` environment variable pointing to your credentials file.
112-
113- #### Note:
114- Some clients accept the ` keyFilePath ` and ` keyFile ` configuration options pointing to the credentials file:
115-
116- ``` php
117- require 'vendor/autoload.php';
118-
119- use Google\Cloud\Storage\StorageClient;
120-
121- // Authenticate using a keyfile path
122- $cloud = new StorageClient([
123- 'keyFilePath' => 'path/to/keyfile.json'
124- ]);
125-
126- // Authenticate using keyfile data
127- $cloud = new StorageClient([
128- 'keyFile' => json_decode(file_get_contents('/path/to/keyfile.json'), true)
129- ]);
130- ```
131- A list of clients that accept these parameters are:
132- - [ Bigtable] ( https://github.com/googleapis/google-cloud-php-bigtable )
133- - [ Spanner] ( https://github.com/googleapis/google-cloud-php-spanner )
134- - [ Firestore] ( https://github.com/googleapis/google-cloud-php-firestore )
135- - [ Datastore] ( https://github.com/googleapis/google-cloud-php-datastore )
136- - [ Pubsub] ( https://github.com/googleapis/google-cloud-php-pubsub )
137- - [ Logging] ( https://github.com/googleapis/google-cloud-php-logging )
138- - [ Translate] ( https://github.com/googleapis/google-cloud-php-translate )
139- - [ Bigquery] ( https://github.com/googleapis/google-cloud-php-bigquery )
140- - [ Storage] ( https://github.com/googleapis/google-cloud-php-storage )
141-
142- We recommend to visit the Check the [ client documentation] [ php-ref-docs ] for the client library you're using for more in depth information.
143-
144- [ php-ref-docs ] : https://cloud.google.com/php/docs/reference
145-
146- If you do not wish to embed your authentication information in your application code, you may also make use of [ Application Default Credentials] ( https://developers.google.com/identity/protocols/application-default-credentials ) .
147-
148- ``` php
149- require 'vendor/autoload.php';
150-
151- use Google\Cloud\Storage\StorageClient;
152-
153- putenv('GOOGLE_APPLICATION_CREDENTIALS=/path/to/keyfile.json');
154-
155- $cloud = new StorageClient();
156- ```
157-
158- The ` GOOGLE_APPLICATION_CREDENTIALS ` environment variable may be set in your server configuration.
101+ See [ AUTHENTICATION.md] ( AUTHENTICATION.md )
159102
160103### Debugging
161104
0 commit comments