2017 © Pedro Peláez
 

library cloud-dlp

Data Loss Prevention Client for PHP

image

google/cloud-dlp

Data Loss Prevention Client for PHP

  • Thursday, July 19, 2018
  • by bshaffer
  • Repository
  • 49 Watchers
  • 1 Stars
  • 2,558 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 27 Versions
  • 21 % Grown

The README.md

Data Loss Prevention for PHP

Idiomatic PHP client for Google DLP., (*1)

Latest Stable Version Packagist, (*2)

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

The DLP API lets you understand and manage sensitive data., (*4)

Installation

To begin, install the preferred dependency manager for PHP, Composer., (*5)

Now install this component:, (*6)

$ composer require google/cloud-dlp

This component supports both REST over HTTP/1.1 and gRPC. In order to take advantage of the benefits offered by gRPC (such as streaming methods) please see our gRPC installation guide., (*7)

Authentication

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

Sample

require 'vendor/autoload.php';

use Google\Cloud\Dlp\V2\DlpServiceClient;
use Google\Cloud\Dlp\V2\ContentItem;
use Google\Cloud\Dlp\V2\InfoType;
use Google\Cloud\Dlp\V2\InspectConfig;

$dlpServiceClient = new DlpServiceClient();
$infoTypesElement = (new InfoType())
    ->setName('EMAIL_ADDRESS');
$inspectConfig = (new InspectConfig())
    ->setInfoTypes([$infoTypesElement]);
$item = (new ContentItem())
    ->setValue('My email is example@example.com.');
$formattedParent = $dlpServiceClient
    ->projectName('[PROJECT_ID]');

$response = $dlpServiceClient->inspectContent($formattedParent, [
    'inspectConfig' => $inspectConfig,
    'item' => $item
]);

$findings = $response->getResult()
    ->getFindings();

foreach ($findings as $finding) {
    print $finding->getInfoType()
        ->getName() . PHP_EOL;
}

Debugging

Please see our Debugging guide for more information about the debugging tools., (*9)

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., (*10)

Next Steps

  1. Understand the official documentation.
  2. Take a look at in-depth usage samples.

The Versions

19/07 2018

dev-master

9999999-dev

Data Loss Prevention Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

19/07 2018

v0.11.2

0.11.2.0

Data Loss Prevention Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

11/07 2018

v0.11.1

0.11.1.0

Data Loss Prevention Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

03/07 2018

v0.11.0

0.11.0.0

Data Loss Prevention Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

12/06 2018

v0.10.0

0.10.0.0

Data Loss Prevention Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

31/05 2018

v0.9.1

0.9.1.0

Data Loss Prevention Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

24/05 2018

v0.9.0

0.9.0.0

Data Loss Prevention Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

08/05 2018

v0.8.1

0.8.1.0

Data Loss Prevention Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

16/04 2018

v0.8.0

0.8.0.0

Data Loss Prevention Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

11/04 2018

v0.7.2

0.7.2.0

Data Loss Prevention Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

03/04 2018

v0.7.1

0.7.1.0

Data Loss Prevention Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

28/03 2018

v0.7.0

0.7.0.0

Data Loss Prevention Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

16/03 2018

v0.6.0

0.6.0.0

Data Loss Prevention Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

26/02 2018

v0.5.3

0.5.3.0

Data Loss Prevention Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

01/02 2018

v0.5.2

0.5.2.0

Data Loss Prevention Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

23/01 2018

v0.5.1

0.5.1.0

Data Loss Prevention Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

23/01 2018

v0.5.0

0.5.0.0

Data Loss Prevention Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

29/12 2017

v0.4.3

0.4.3.0

Data Loss Prevention Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

22/12 2017

v0.4.2

0.4.2.0

Data Loss Prevention Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

16/12 2017

v0.4.1

0.4.1.0

Data Loss Prevention Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

02/12 2017

v0.4.0

0.4.0.0

Data Loss Prevention Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

15/11 2017

v0.3.1

0.3.1.0

Data Loss Prevention Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

01/11 2017

v0.3.0

0.3.0.0

Data Loss Prevention Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

17/10 2017

v0.2.0

0.2.0.0

Data Loss Prevention Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

05/09 2017

v0.1.2

0.1.2.0

Data Loss Prevention Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

25/08 2017

v0.1.1

0.1.1.0

Data Loss Prevention Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

11/07 2017

v0.1.0

0.1.0.0

Data Loss Prevention Client for PHP

  Sources   Download

Apache-2.0

The Requires