Facebook messenger bot framework
FamePHP is a framework for creating Facebook messenger bots. It uses the official Facebook API and requires PHP 7.2 or higher.
For a quick setup guide and some examples, head over to the wiki.
Can’t wait to try it out? Edit api/Config.php
to your requirements and use this code snippet in index.php
<?php
require_once 'core/Bootstrap.php';
use Famephp\core\Response;
use Famephp\core\Sender;
use Famephp\core\attachments\Text;
$listener->hears('hi', function(Sender $sender, Response $response) {
$response->send(new Text("Hello, $sender->firstname! :D"));
});