Download the PHP package scaletta/botman-driver-dialogflow without Composer

On this page you can find all versions of the php package scaletta/botman-driver-dialogflow. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package botman-driver-dialogflow

PHP Composer

BotMan Dialogflow Driver with Fixes

BotMan driver to handle Dialogflow fulfillment with BotMan. The original repo is not maintained anymore, no answers on pullrequests. As for that reason i forked it with fixes. The main fix right now is to be able to provide Outgoing Context to DialogFlow.

It uses eristemena/dialog-fulfillment-webhook-php library, so it supports v1 and v2 of Dialogflow request.

Installation & Setup

First you need to pull in the Driver.

If you're using BotMan Studio, that's pretty much it.

But if you don't, then load the driver before creating the BotMan instance:

Usage

Hearing Messages

You can start receiving message using hears() based on the Intent of the message,

Single Message Reply

The simplest way to reply to an incoming message is using BotMan's own reply() method:

Add Outgoing Context

To make use of parameters in DialogFlow you can use outgoing context

Multiple Message Replies

Normally when you want to send multiple replies, you use reply() multiple times. Unfortunately this doesn't work for Dialogflow driver, cause the messages should be in a single response payload.

For that, you have to use specific methods for this driver addMessage() and sendMessage() as follow,

Rich Messages

Text

Use Dialogflow\RichMessage\Text

Image

Use Dialogflow\RichMessage\Image

Card

Use Dialogflow\RichMessage\Card

Quick Replies

Use Dialogflow\RichMessage\Suggestion

Custom Payload

Use Dialogflow\RichMessage\Payload


All versions of botman-driver-dialogflow with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
botman/botman Version ~2.1
eristemena/dialogflow-fulfillment-webhook-php Version ~1.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package scaletta/botman-driver-dialogflow contains the following files

Loading the files please wait ....