PHP client library

This page provides reference documentation and related resources for the Dialogflow PHP client library.

Resource Description
Library reference Dialogflow PHP library reference
Language guide General guide for using PHP with GCP
GitHub repository Source code and additional documentation for this library
Quickstart Introduction to using this library
Stack Overflow Questions tagged with Dialogflow and PHP

Installation

To install the client library:

  1. Install the preferred dependency manager for PHP, Composer.
  2. Install the Dialogflow component of Google Cloud Client Libraries:
    composer require google/cloud-dialogflow
  3. This component supports both REST over HTTP/1.1 and gRPC. In order to take advantage of the benefits offered by gRPC (such as streaming methods), follow the instructions in the gRPC installation guide.
Was this page helpful? Let us know how we did:

Send feedback about...

Dialogflow Documentation
Need help? Visit our support page.