Skip to content

kiwari-engineering/chataja-samplebot-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatAja! Bot Webhook Sample with PHP

Requirements

  • PHP 7
  • Composer
  • ngrok
  • Bot Access Token (you can chat with Chatbot Builder in Jelajah menu)

How to run

  • Clone this repository and install dependencies composer.json
$ git clone https://gitlab.playcourt.id/iskandarsuhaimi/sample-bot-kiwari.git
$ cd sample-bot-kiwari
$ composer install
$ composer dump-autoload -o
  • Go to Jelajah menu

  • chat with Chatbot Builder

  • Create bot and get access_token

  • Copy and Paste to Controller.php class

  • Run webhook server

$ php -S localhost:3000
  • Tunneling your webhook server
$ ngrok http 3000
  • Register your webhook url by copy your ngrok https url from CLI, then input it into Chatbot Builder

  • Enjoy!

About

develop with php

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages