In order to run Giga Messenger Bots (GigaAI), your server should meet these minimum requirements:
- PHP >= 5.4
- MySQL >= 5.6
- Your site (or webhook) should
Most of server/hosting providers is already support PHP 5.4+ and cURL. You can also get a free SSL from LetsEncrypt.
Of course, it's highly recommended that you run latest stable PHP version.
Installing Giga Messenger Bot
giga-messenger-bot.zipand unzip the package.
giga-messenger-botdirectory to your web server.
- Your webhook now is the path to
/public/index.phpURL. For example:
Setup Your Database
- Create your MySQL database (or use existing one if already have)
/vendor/gigaai/framework/schema/mysql.sqland import to your database
/config.php, in mysql section, enter your database connection info then save file.
Of course, you can rename
giga-messenger-botto whatever you want. Or point your domain to
/public/URL for security purpose. All is well.
Secure Tunnels to Localhost
Let's assume that you want to test your bots in your development environment before deploying. You'll need to let Facebook connect to your PC and it should have SSL enabled. To simply these steps, we'd recommend that you use ngrok, it will automatically create a secure public URL to your local webserver with format: