Overview

Features

  • Modular
  • Flexible HTTP requests with Guzzle
  • Fast and easy to use
  • Implements getUpdates and webhook
  • Command-handle system for messages and callback queries
  • Easy inline keyboard creation
  • InlineQuery cretion
  • SQL Database facilities
  • Localization
  • Save status for interactive chats
  • Upload local files
  • Logging

Requirements

  1. Php 7.0 or greater
  2. Composer

Webhook requirements

  1. Webserver
  2. SSL certificate

Localization requirements

  1. SQL Database
  2. Redis database (Optional)

Installation

In order to install PhpBotFramework you need to install composer:

curl -sS https://getcomposer.org/installer | php

Then set the framework as a requirement for the bot and install the dependencies:

php composer.phar require danyspin97/php-bot-framework
php composer.phar install --no-dev

Alternatively, you can set the depency in the composer.json of your bot:

{
   "require": {
      "danyspin97/php-bot-framework": "*"
   }
}

After installing it, you need to require the Composer’s autoloader:

require 'vendor/autoload.php';

Authors

This framework is developed and mantained by Danilo Spinella and Dom Corvasce.

License

PhpBotFramework is released under the GNU Lesser General Public License v3.

You may copy, distribute and modify the software provided that modifications are described and licensed for free under LGPL-3. Derivatives works (including modifications) can only be redistributed under LGPL-3, but applications that use the framework don't have to be.