1
- Dialogflow PHP sdk
1
+ DialogFlow PHP sdk
2
2
==============
3
3
4
4
[ ![ version] [ packagist-version ]] [ packagist-url ]
5
5
[ ![ Downloads] [ packagist-downloads ]] [ packagist-url ]
6
6
7
- [ packagist-url ] : https://packagist.org/packages/iboldurev/api-ai-php
8
- [ packagist-version ] : https://img.shields.io/packagist/v/iboldurev/api-ai-php .svg?style=flat
9
- [ packagist-downloads ] : https://img.shields.io/packagist/dm/iboldurev/api-ai-php .svg?style=flat
7
+ [ packagist-url ] : https://packagist.org/packages/iboldurev/dialogflow
8
+ [ packagist-version ] : https://img.shields.io/packagist/v/iboldurev/dialogflow .svg?style=flat
9
+ [ packagist-downloads ] : https://img.shields.io/packagist/dm/iboldurev/dialogflow .svg?style=flat
10
10
11
11
This is an unofficial php sdk for [ Dialogflow] [ 1 ] and it's still in progress...
12
12
@@ -29,7 +29,7 @@ Using the low level `Client`:
29
29
``` php
30
30
require_once __DIR__.'/vendor/autoload.php';
31
31
32
- use ApiAi \Client;
32
+ use DialogFlow \Client;
33
33
34
34
try {
35
35
$client = new Client('access_token');
@@ -51,9 +51,9 @@ Using the low level `Query`:
51
51
``` php
52
52
require_once __DIR__.'/vendor/autoload.php';
53
53
54
- use ApiAi \Client;
55
- use ApiAi \Model\Query;
56
- use ApiAi \Method\QueryApi;
54
+ use DialogFlow \Client;
55
+ use DialogFlow \Model\Query;
56
+ use DialogFlow \Method\QueryApi;
57
57
58
58
try {
59
59
$client = new Client('access_token');
@@ -76,9 +76,9 @@ Using the low level asynchronous api:
76
76
``` php
77
77
require_once __DIR__.'/vendor/autoload.php';
78
78
79
- use ApiAi \Client;
80
- use ApiAi \Model\Query;
81
- use ApiAi \Method\QueryApi;
79
+ use DialogFlow \Client;
80
+ use DialogFlow \Model\Query;
81
+ use DialogFlow \Method\QueryApi;
82
82
use GuzzleHttp\HandlerStack;
83
83
use React\EventLoop\Factory;
84
84
use WyriHaximus\React\GuzzlePsr7\HttpClientAdapter;
@@ -152,9 +152,9 @@ And using it in the `Dialog` class.
152
152
``` php
153
153
require_once __DIR__.'/vendor/autoload.php';
154
154
155
- use ApiAi \Client;
156
- use ApiAi \Method\QueryApi;
157
- use ApiAi \Dialog;
155
+ use DialogFlow \Client;
156
+ use DialogFlow \Method\QueryApi;
157
+ use DialogFlow \Dialog;
158
158
use Custom\MyActionMapping;
159
159
160
160
try {
@@ -172,7 +172,4 @@ try {
172
172
173
173
```
174
174
175
- Some examples are describe in the [ iboldurev/api-ai-php-example] [ 2 ] repository.
176
-
177
175
[ 1 ] : https://dialogflow.com
178
- [ 2 ] : https://github.com/iboldurev/api-ai-php-example
0 commit comments