iboldurev / dialogflow

Unofficial php sdk for Dialogflow
https://dialogflow.com/
MIT License
164 stars 60 forks source link

Can this be used with Laravel 5.x? #11

Open seatechdev opened 7 years ago

seatechdev commented 7 years ago

Can you provide an example for how to use it with Laravel 5.x?

smaugho commented 7 years ago

Hi, I'm using it with Laravel 5.4. You should simply place it into a lib folder, and then you can use it normally from within your code:

Ex.

root

MazzMazz commented 7 years ago

Am I wrong here but if you are using Laravel you can simply install it with composer install iboldurev/dialogflow and use it with simple use statements like use DialogFlow\Client as DialogFlowClient;