PHPackages                             0099ff/dialogflowphp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. 0099ff/dialogflowphp

ActivePackage[API Development](/categories/api)

0099ff/dialogflowphp
====================

A PHP-SDK for V1 of the Dialogflow API

2302PHP

Since May 22Pushed 8y agoCompare

[ Source](https://github.com/0099FF/dialogflow-php)[ Packagist](https://packagist.org/packages/0099ff/dialogflowphp)[ RSS](/packages/0099ff-dialogflowphp/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Dialogflow PHP
==============

[](#dialogflow-php)

Unofficial PHP library for V1 of the Dialogflow API.

Install
-------

[](#install)

```
composer require 0099ff/dialogflowphp

```

Usage
-----

[](#usage)

```
include "vendor/autoload.php";

use DialogflowPHP\Client;

$client = new Client('developer_access_token', 'session_id');
$response = $client->query("Hi Chatbot!");

echo $response->result->fulfillment->speech;
```

> Hello, puny human

```
echo $response->result->score;
```

> 0.91000002622604

Agent responses can also be returned as a JSON string:

```
$response = $client->query("Hi chatbot!", $return_as_json=true);
echo $response;
```

> { "id": "xxxx", "timestamp": "2018-05-05T09:52:25.905Z", "lang": "en", "result": { "source": "agent", "resolvedQuery": "Hi chatbot!", "action": "", "actionIncomplete": false, "parameters": {}, "contexts": \[\], "metadata": { "intentId": "xxxx", "webhookUsed": "false", "webhookForSlotFillingUsed": "false", "intentName": "Hey" }, "fulfillment": { "speech": "Hello, puny human", "messages": \[ { "type": 0, "speech": "Hello, puny human" } \] }, "score": 0.9100000262260437 }, "status": { "code": 200, "errorType": "success" }, "sessionId": "session\_id" }

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20736095?v=4)[Jarrod W](/maintainers/0099FF)[@0099FF](https://github.com/0099FF)

---

Top Contributors

[![0099FF](https://avatars.githubusercontent.com/u/20736095?v=4)](https://github.com/0099FF "0099FF (14 commits)")

---

Tags

dialogflow

### Embed Badge

![Health badge](/badges/0099ff-dialogflowphp/health.svg)

```
[![Health](https://phpackages.com/badges/0099ff-dialogflowphp/health.svg)](https://phpackages.com/packages/0099ff-dialogflowphp)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
