PHPackages                             gambry/dialogflow-webhook - 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. gambry/dialogflow-webhook

ActiveLibrary[API Development](/categories/api)

gambry/dialogflow-webhook
=========================

DialogFlow Webhook Fulfillment PHP sdk

2.2.0(3y ago)011.6k↓22.2%2MITPHPPHP &gt;=7.3

Since Aug 20Pushed 3y ago1 watchersCompare

[ Source](https://github.com/gambry/dialogflow-webhook)[ Packagist](https://packagist.org/packages/gambry/dialogflow-webhook)[ RSS](/packages/gambry-dialogflow-webhook/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (12)Used By (0)

DialogFlow Webhook Fulfillment PHP sdk
======================================

[](#dialogflow-webhook-fulfillment-php-sdk)

[![Build Status](https://camo.githubusercontent.com/b3aefcc0f159989f94679af03cb57e6c7484780eab2f167d7e0d961c01faf961/68747470733a2f2f7472617669732d63692e6f72672f67616d6272792f6469616c6f67666c6f772d776562686f6f6b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/gambry/dialogflow-webhook)[![version](https://camo.githubusercontent.com/9b4cdfb1bf26c54fc323e0435214fd091fe68083b00accf9e525a0249f97b96f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f67616d6272792f6469616c6f67666c6f772d776562686f6f6b2e7376673f7374796c653d666c6174)](https://packagist.org/packages/gambry/dialogflow-webhook)[![Downloads](https://camo.githubusercontent.com/29815b4731fd11e634a1c9212cd2cdb33dc96cad36fcc4e303b9abeaebd735e9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f67616d6272792f6469616c6f67666c6f772d776562686f6f6b2e7376673f7374796c653d666c6174)](https://packagist.org/packages/gambry/dialogflow-webhook)

This is an unofficial php sdk for [Dialogflow](https://dialogflow.com) [Fulfillment](https://dialogflow.com/docs/sdks#fulfillment).

*If you are looking for [Detect Intent and Agent APIs](https://dialogflow.com/docs/sdks#detect_intent_and_agent_apis) php sdk have a look a the [official repo](https://github.com/GoogleCloudPlatform/google-cloud-php-dialogflow)*.

```
Dialogflow: Build brand-unique, natural language interactions for bots, applications and devices.

```

Install:
--------

[](#install)

Via composer:

```
$ composer require gambry/dialogflow-webhook

```

Usage:
------

[](#usage)

In your webhook request handler:

```
require_once __DIR__.'/vendor/autoload.php';

if ($webhook_json = json_decode($request_body, TRUE)) {
    $request = new \DialogFlow\Model\Webhook\Request($webhook_json);
    $intent_name = $request->getResult()->getIntent()->getIntentName();

    if ($intent_name === 'HelloWorld') {
        $fulfillment = new \DialogFlow\Model\Fulfillment();
        $fulfillment->setText('Hi from the fulfilment!');

        $response = new \DialogFlow\Model\Webhook\Response();
        $response->setFulfillment($fulfillment);

        echo json_encode($response);
    }
}
```

**Note: depending by the way you handle the request the library auto-loading, the `$request_body` variable and the way to return the `$response` may vary.**

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 55.8% 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.

###  Release Activity

Cadence

Every ~264 days

Recently: every ~416 days

Total

10

Last Release

1176d ago

Major Versions

0.3.0 → v2.x-dev2018-08-05

PHP version history (2 changes)0.2.5PHP &gt;=5.5.0

2.1.0PHP &gt;=7.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/0b15d2510b7f1689cda9505480f668db57277e2476af142f9ca7694ce98ab0b9?d=identicon)[gambry](/maintainers/gambry)

---

Top Contributors

[![iboldurev](https://avatars.githubusercontent.com/u/17103170?v=4)](https://github.com/iboldurev "iboldurev (29 commits)")[![gambry](https://avatars.githubusercontent.com/u/11092878?v=4)](https://github.com/gambry "gambry (19 commits)")[![aleplusplus](https://avatars.githubusercontent.com/u/6319838?v=4)](https://github.com/aleplusplus "aleplusplus (1 commits)")[![CthulhuDen](https://avatars.githubusercontent.com/u/3912367?v=4)](https://github.com/CthulhuDen "CthulhuDen (1 commits)")[![pattyland](https://avatars.githubusercontent.com/u/838758?v=4)](https://github.com/pattyland "pattyland (1 commits)")[![pilot](https://avatars.githubusercontent.com/u/28564?v=4)](https://github.com/pilot "pilot (1 commits)")

---

Tags

botfulfillmentapi.aiDialogflowDialogflow sdk

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gambry-dialogflow-webhook/health.svg)

```
[![Health](https://phpackages.com/badges/gambry-dialogflow-webhook/health.svg)](https://phpackages.com/packages/gambry-dialogflow-webhook)
```

###  Alternatives

[iboldurev/dialogflow

Dialogflow php sdk

16540.5k1](/packages/iboldurev-dialogflow)[longman/telegram-bot

PHP Telegram bot

4.0k2.1M50](/packages/longman-telegram-bot)[telegram-bot/api

PHP Wrapper for Telegram Bot API

1.2k2.4M29](/packages/telegram-bot-api)[linecorp/line-bot-sdk

SDK of the LINE BOT API for PHP

7323.0M21](/packages/linecorp-line-bot-sdk)[tg-bot-api/bot-api-base

Clear and simple Telegram bot API

22278.8k2](/packages/tg-bot-api-bot-api-base)[botman/driver-telegram

Telegram driver for BotMan

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

PHPackages © 2026

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