Skip to content

Commit e8b6e84

Browse files
Add a Google Cloud Natural Language API sample.
1 parent 25405cb commit e8b6e84

18 files changed

+1470
-0
lines changed

language/api/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Google Cloud Natural Language API Samples
2+
3+
These samples show how to use the [Google Cloud Natural Language API][language-api]
4+
to analyze text.
5+
6+
This repository contains samples that use the [Google Cloud
7+
Library for PHP][google-cloud-php] to make REST calls as well as
8+
contains samples using the more-efficient (though sometimes more
9+
complex) [GRPC][grpc] API. The GRPC API also allows streaming requests.
10+
11+
[speech-api]: http://cloud.google.com/natural-language
12+
[google-cloud-php]: https://googlecloudplatform.github.io/google-cloud-php/
13+
[grpc]: http://grpc.io

language/api/composer.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"require": {
3+
"google/cloud": "0.8",
4+
"symfony/console": "^3.0"
5+
},
6+
"autoload": {
7+
"psr-4": {
8+
"Google\\Cloud\\Samples\\Language\\": "src/"
9+
},
10+
"files": [
11+
"src/functions/analyze_entities.php",
12+
"src/functions/analyze_everything.php",
13+
"src/functions/analyze_sentiment.php",
14+
"src/functions/analyze_syntax.php"
15+
]
16+
}
17+
}

0 commit comments

Comments
 (0)