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).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["Version latestkeyboard_arrow_down\n\n- [1.1.1 (latest)](/php/docs/reference/cloud-datacatalog-lineage/latest)\n- [1.1.0](/php/docs/reference/cloud-datacatalog-lineage/1.1.0)\n- [1.0.3](/php/docs/reference/cloud-datacatalog-lineage/1.0.3)\n- [0.5.5](/php/docs/reference/cloud-datacatalog-lineage/0.5.5)\n- [0.4.0](/php/docs/reference/cloud-datacatalog-lineage/0.4.0)\n- [0.3.1](/php/docs/reference/cloud-datacatalog-lineage/0.3.1)\n- [0.2.1](/php/docs/reference/cloud-datacatalog-lineage/0.2.1)\n- [0.1.3](/php/docs/reference/cloud-datacatalog-lineage/0.1.3) \n\nGoogle Cloud Data Catalog Lineage for PHP\n=========================================\n\n\u003e Idiomatic PHP client for [Google Cloud Data Catalog Lineage](https://cloud.google.com/data-catalog/docs/concepts/about-data-lineage).\n\n[](https://packagist.org/packages/google/cloud-datacatalog-lineage) [](https://packagist.org/packages/google/cloud-datacatalog-lineage)\n\n**NOTE:** This repository is part of [Google Cloud PHP](https://github.com/googleapis/google-cloud-php). Any\nsupport requests, bug reports, or development contributions should be directed to\nthat project.\n\n### Installation\n\nTo begin, install the preferred dependency manager for PHP, [Composer](https://getcomposer.org/).\n\nNow install this component: \n\n $ composer require google/cloud-datacatalog-lineage\n\n\u003e Browse the complete list of [Google Cloud APIs](https://cloud.google.com/php/docs/reference)\n\u003e for PHP\n\n### Authentication\n\nPlease see our [Authentication guide](https://github.com/googleapis/google-cloud-php/blob/main/AUTHENTICATION.md) for more information\non authenticating your client. Once authenticated, you'll be ready to start making requests.\n\n### Sample\n\n Google\\ApiCore\\ApiException;\n Google\\Cloud\\DataCatalog\\Lineage\\V1\\Client\\LineageClient;\n Google\\Cloud\\DataCatalog\\Lineage\\V1\\GetLineageEventRequest;\n Google\\Cloud\\DataCatalog\\Lineage\\V1\\LineageEvent;\n\n // Create a client.\n $lineageClient = new LineageClient();\n\n // Prepare the request message.\n $request = (new GetLineageEventRequest())\n -\u003esetName($formattedName);\n\n // Call the API and handle any network failures.\n try {\n /** @var LineageEvent $response */\n $response = $lineageClient-\u003egetLineageEvent($request);\n printf('Response data: %s' . PHP_EOL, $response-\u003eserializeToJsonString());\n } catch (ApiException $ex) {\n printf('Call failed with message: %s' . PHP_EOL, $ex-\u003egetMessage());\n }\n ```s\n\n See the [samples directory](samples/) for a canonical list of samples.\n\n ### Debugging\n\n Please see our [Debugging guide](https://github.com/googleapis/google-cloud-php/blob/main/DEBUG.md)\n for more information about the debugging tools.\n\n ### Version\n\n This component is considered GA (generally available). As such, it will not introduce backwards-incompatible changes in\n any minor or patch releases. We will address issues and requests with the highest priority.\n\n ### Next Steps\n\n 1. Understand the [official documentation](https://cloud.google.com/data-catalog/docs/reference/data-lineage/rest)."]]