dialogflow icon indicating copy to clipboard operation
dialogflow copied to clipboard

Can this be used with Laravel 5.x?

Open seatechdev opened this issue 7 years ago • 2 comments

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

seatechdev avatar Jun 27 '17 18:06 seatechdev

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

  • app
  • bootstrap
  • config
  • database
  • libs (Create this folder)
    • api-ai-php (Place here the library)
  • public
  • resources ...

smaugho avatar Aug 16 '17 06:08 smaugho

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;

MazzMazz avatar Nov 08 '17 08:11 MazzMazz