google/cloud-datacatalog-lineage

Google Cloud Data Catalog Lineage Client for PHP

v1.1.0 2025-02-03 23:47 UTC

README

Idiomatic PHP client for Google Cloud Data Catalog Lineage.

Latest Stable Version Packagist

NOTE: This repository is part of Google Cloud PHP. Any support requests, bug reports, or development contributions should be directed to that project.

Installation

To begin, install the preferred dependency manager for PHP, Composer.

Now install this component:

$ composer require google/cloud-datacatalog-lineage

Browse the complete list of Google Cloud APIs for PHP

Authentication

Please see our Authentication guide for more information on authenticating your client. Once authenticated, you'll be ready to start making requests.

Sample

Google\ApiCore\ApiException;
Google\Cloud\DataCatalog\Lineage\V1\Client\LineageClient;
Google\Cloud\DataCatalog\Lineage\V1\GetLineageEventRequest;
Google\Cloud\DataCatalog\Lineage\V1\LineageEvent;

// Create a client.
$lineageClient = new LineageClient();

// Prepare the request message.
$request = (new GetLineageEventRequest())
    ->setName($formattedName);

// Call the API and handle any network failures.
try {
    /** @var LineageEvent $response */
    $response = $lineageClient->getLineageEvent($request);
    printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
} catch (ApiException $ex) {
    printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
}
```s

See the [samples directory](samples/) for a canonical list of samples.

### Debugging

Please see our [Debugging guide](https://github.com/googleapis/google-cloud-php/blob/main/DEBUG.md)
for more information about the debugging tools.

### Version

This component is considered GA (generally available). As such, it will not introduce backwards-incompatible changes in
any minor or patch releases. We will address issues and requests with the highest priority.

### Next Steps

1. Understand the [official documentation](https://cloud.google.com/data-catalog/docs/reference/data-lineage/rest).