2017 © Pedro Peláez
 

library cloud-language

Cloud Natural Language Client for PHP

image

google/cloud-language

Cloud Natural Language Client for PHP

  • Thursday, July 19, 2018
  • by bshaffer
  • Repository
  • 36 Watchers
  • 2 Stars
  • 20,108 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 30 Versions
  • 48 % Grown

The README.md

Google Cloud PHP Natural Language

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

Provides natural language understanding technologies to developers, including sentiment analysis, entity analysis, entity sentiment analysis, content classification, and syntax analysis. This API is part of the larger Cloud Machine Learning API family., (*4)

Installation

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

Now install this component:, (*6)

$ composer require google/cloud-language

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\Language\LanguageClient;

$language = new LanguageClient();

// Analyze a sentence.
$annotation = $language->annotateText('Greetings from Michigan!');

// Check the sentiment.
if ($annotation->sentiment() > 0) {
    echo "This is a positive message.\n";
}

// Detect entities.
$entities = $annotation->entitiesByType('LOCATION');

foreach ($entities as $entity) {
    echo $entity['name'] . "\n";
}

// Parse the syntax.
$tokens = $annotation->tokensByTag('NOUN');

foreach ($tokens as $token) {
    echo $token['text']['content'] . "\n";
}

Debugging

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

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

Next Steps

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

The Versions

16/03 2018

v0.12.3

0.12.3.0

Cloud Natural Language Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

26/02 2018

v0.12.2

0.12.2.0

Cloud Natural Language Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

01/02 2018

v0.12.1

0.12.1.0

Cloud Natural Language Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

23/01 2018

v0.12.0

0.12.0.0

Cloud Natural Language Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

29/12 2017

v0.11.2

0.11.2.0

Cloud Natural Language Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

22/12 2017

v0.11.1

0.11.1.0

Cloud Natural Language Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

16/12 2017

v0.11.0

0.11.0.0

Cloud Natural Language Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

02/12 2017

v0.10.0

0.10.0.0

Cloud Natural Language Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

15/11 2017

v0.9.1

0.9.1.0

Cloud Natural Language Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

11/11 2017

v0.9.0

0.9.0.0

Cloud Natural Language Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

08/11 2017

v0.8.0

0.8.0.0

Cloud Natural Language Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

01/11 2017

v0.7.0

0.7.0.0

Cloud Natural Language Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

17/10 2017

v0.6.0

0.6.0.0

Cloud Natural Language Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

05/09 2017

v0.5.0

0.5.0.0

Cloud Natural Language Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

25/08 2017

v0.4.1

0.4.1.0

Cloud Natural Language Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

01/07 2017

v0.4.0

0.4.0.0

Cloud Natural Language Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

07/04 2017

v0.3.0

0.3.0.0

Cloud Natural Language Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

31/03 2017

v0.2.0

0.2.0.0

Cloud Natural Language Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

10/03 2017

v0.1.0

0.1.0.0

Cloud Natural Language Client for PHP

  Sources   Download

Apache-2.0

The Requires