PHP code example of tradecoverexchange / google-cloud-tasks-laravel
1. Go to this page and download the library: Download tradecoverexchange/google-cloud-tasks-laravel library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tradecoverexchange / google-cloud-tasks-laravel example snippets
return [
'connections' => [
'app_engine_tasks' => [
'driver' => 'google_app_engine_cloud_tasks',
'queue' => env('GOOGLE_CLOUD_TASKS_QUEUE', 'default'),
'project_id' => env('GOOGLE_CLOUD_TASKS_PROJECT_ID', ''),
'location' => env('GOOGLE_CLOUD_TASKS_LOCATION_ID', ''),
'options' => [
'credentials' => 'path/to/your/keyfile',
'transport' => 'rest',
],
],
'http_cloud_tasks' => [
'driver' => 'google_http_cloud_tasks',
'queue' => env('GOOGLE_CLOUD_TASKS_QUEUE', 'default'),
'project_id' => env('GOOGLE_CLOUD_TASKS_PROJECT_ID', ''),
'location' => env('GOOGLE_CLOUD_TASKS_LOCATION_ID', ''),
'authentication' => [
'token_type' => 'oidc',
'service_account' => env('GOOGLE_CLOUD_TASKS_SERVICE_ACCOUNT', ''),
],
'options' => [
'credentials' => 'path/to/your/keyfile',
'transport' => 'rest',
],
],
],
];