involix / messenger
PHP Library to interact with Facebook Messenger Platform
v3.5.0
2020-12-25 12:44 UTC
Requires
- php: >=7.3.0
- ext-json: *
- guzzlehttp/guzzle: ^7.0.1
- psr/http-message: ^1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.5
- phpstan/phpstan: ^0.11.12
- phpunit/phpunit: ^7.5
README
Messenger
A PHP library to interact with Facebook Messenger Platform
Installation
You can install Messenger using Composer:
composer require involix/messenger
You will then need to:
- run
composer install
to get these dependencies added to your vendor directory - add the autoloader to your application with this line:
require('vendor/autoload.php');
Basic usage
use Involix\Messenger\Messenger; $messenger = new Messenger($appSecret, $verifyToken, $pageToken) $messenger->send()->message(<USER_ID>, 'Hello world!');
Advance usage
Please, refer to the wiki to learn how to use this library
Features
API
- Broadcast (deprecated)
- Code (deprecated)
- Insights
- Nlp
- Persona
- Profile
- Send
- Tag
- Thread
- User
- Webhook
Templates
- Airline Boarding Pass
- Airline Check In
- Airline Itinerary
- Airline Update
- Buttons
- Account Link
- Account Unlink
- Nested (deprecated)
- Payment
- Phone Number
- Postback
- Share (deprecated)
- Web Url
- Generic
- List (deprecated)
- Media
- Receipt
Callback
- Account Linking
- AppRoles
- Checkout Update
- Delivery
- GamePlay
- Message
- Message Echo
- Optin
- PassThreadControl
- Payment
- Policy Enforcement
- Postback
- Pre Checkout
- Read
- Reaction
- Referral
- RequestThreadControl
- TakeThreadControl