Install the preferred dependency manager for PHP,
Composer.
Install the Dialogflow component of Google Cloud Client Libraries:
composer require google/cloud-dialogflow
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-22 UTC."],[[["\u003cp\u003eThis page contains reference documentation and resources for the Dialogflow PHP client library.\u003c/p\u003e\n"],["\u003cp\u003eThe Dialogflow PHP library reference can be found via the provided link, along with general PHP with GCP language guides.\u003c/p\u003e\n"],["\u003cp\u003eThe GitHub repository offers access to the source code and further documentation for this library.\u003c/p\u003e\n"],["\u003cp\u003eInstallation instructions are included for using Composer to acquire the Dialogflow component of Google Cloud Client Libraries.\u003c/p\u003e\n"],["\u003cp\u003eYou can choose to utilize gRPC with the client, with instructions provided for a better experience.\u003c/p\u003e\n"]]],[],null,["# PHP client library\n\nThis page provides reference documentation and related resources for the\nDialogflow PHP client library.\n\n### Installation\n\n\nTo install the client library:\n\n1. Install the preferred dependency manager for PHP, [Composer](https://getcomposer.org/).\n2. Install the Dialogflow component of Google Cloud Client Libraries:\n\n ```\n composer require google/cloud-dialogflow\n ```\n3. 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](https://cloud.google.com/php/grpc)."]]