PHP code example of google / cloud-workflows
1. Go to this page and download the library: Download google/cloud-workflows 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/ */
google / cloud-workflows example snippets
use Google\Cloud\Workflows\V1beta\WorkflowsClient;
$client = new WorkflowsClient();
$workflows = $client->listWorkflows(
WorkflowsClient::locationName('[MY_PROJECT_ID]', 'us-central1')
);
foreach ($workflows as $workflow) {
print 'Found workflow: ' . $workflow->getName() . PHP_EOL;
}