Skip to content
This repository has been archived by the owner on Aug 9, 2020. It is now read-only.

sleeyax/FamePHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FamePHP

FamePHP is a framework for creating Facebook messenger bots. It uses the official Facebook API and requires PHP 7.2 or higher.

Documentation

For a quick setup guide and some examples, head over to the wiki.

Quickstart

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"));
});

quickstart result image

Releases

No releases published

Packages

No packages published

Languages