2017 © Pedro Peláez
 

library cloud-vision

Cloud Vision Client for PHP

image

google/cloud-vision

Cloud Vision Client for PHP

  • Thursday, July 19, 2018
  • by bshaffer
  • Repository
  • 37 Watchers
  • 8 Stars
  • 59,919 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 8 Forks
  • 0 Open issues
  • 30 Versions
  • 23 % Grown

The README.md

Google Cloud Vision for PHP

Idiomatic PHP client for Cloud Vision., (*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)

Allows developers to easily integrate vision detection features within applications, including image labeling, face and landmark detection, optical character recognition (OCR), and tagging of explicit content., (*4)

Installation

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

Now install this component:, (*6)

$ composer require google/cloud-vision

Authentication

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

Sample

require 'vendor/autoload.php';

use Google\Cloud\Vision\V1\Feature\Type;
use Google\Cloud\Vision\V1\ImageAnnotatorClient;
use Google\Cloud\Vision\V1\Likelihood;

$client = new ImageAnnotatorClient();

// Annotate an image, detecting faces.
$annotation = $client->annotateImage(
    fopen('/data/photos/family_photo.jpg', 'r'),
    [Type::FACE_DETECTION]
);

// Determine if the detected faces have headwear.
foreach ($annotation->getFaceAnnotations() as $faceAnnotation) {
    $likelihood = Likelihood::name($faceAnnotation->getHeadwearLikelihood());
    echo "Likelihood of headwear: $likelihood" . PHP_EOL;
}

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

Next Steps

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

The Versions

16/03 2018

v0.10.2

0.10.2.0

Cloud Vision Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

26/02 2018

v0.10.1

0.10.1.0

Cloud Vision Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

15/02 2018

v0.10.0

0.10.0.0

Cloud Vision Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

01/02 2018

v0.9.1

0.9.1.0

Cloud Vision Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

23/01 2018

v0.9.0

0.9.0.0

Cloud Vision Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

29/12 2017

v0.8.2

0.8.2.0

Cloud Vision Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

22/12 2017

v0.8.1

0.8.1.0

Cloud Vision Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

16/12 2017

v0.8.0

0.8.0.0

Cloud Vision Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

02/12 2017

v0.7.0

0.7.0.0

Cloud Vision Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

15/11 2017

v0.6.1

0.6.1.0

Cloud Vision Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

01/11 2017

v0.6.0

0.6.0.0

Cloud Vision Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

17/10 2017

v0.5.0

0.5.0.0

Cloud Vision Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

25/08 2017

v0.4.1

0.4.1.0

Cloud Vision Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

01/07 2017

v0.4.0

0.4.0.0

Cloud Vision Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

25/04 2017

v0.3.0

0.3.0.0

Cloud Vision Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

31/03 2017

v0.2.0

0.2.0.0

Cloud Vision Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

10/03 2017

v0.1.0

0.1.0.0

Cloud Vision Client for PHP

  Sources   Download

Apache-2.0

The Requires