PHPackages                             gomoob/php-facebook-messenger - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. gomoob/php-facebook-messenger

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

gomoob/php-facebook-messenger
=============================

A PHP Library to easily work with the Facebook Messenger REST Web Services.

1.0.0-alpha4(8y ago)63.7k1BSD-3-ClausePHPPHP ^5.6 || ^7.0

Since Jun 29Pushed 8y ago6 watchersCompare

[ Source](https://github.com/gomoob/php-facebook-messenger)[ Packagist](https://packagist.org/packages/gomoob/php-facebook-messenger)[ RSS](/packages/gomoob-php-facebook-messenger/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (4)Dependencies (12)Versions (6)Used By (0)

php-facebook-messenger
======================

[](#php-facebook-messenger)

> A PHP Library to easily send Facebook Messenger message with the REST Web Services.

[![Total Downloads](https://camo.githubusercontent.com/224eeffa7d3c000af74a020938b79159090ad0f393206c532c55c2f61ea5a07c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f676f6d6f6f622f7068702d66616365626f6f6b2d6d657373656e6765722e7376673f7374796c653d666c6174)](https://packagist.org/packages/gomoob/php-facebook-messenger)[![Latest Stable Version](https://camo.githubusercontent.com/0d42ab86873e0928f2555079d7d667fda8c5b685db4d58e0b97228359482f05f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f676f6d6f6f622f7068702d66616365626f6f6b2d6d657373656e6765722e7376673f7374796c653d666c6174)](https://packagist.org/packages/gomoob/php-facebook-messenger)[![Build Status](https://camo.githubusercontent.com/e1541efb55b6e43ee2d5314ad94f55e1af5146b6fb40aa06fed81089abb8d9b2/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f676f6d6f6f622f7068702d66616365626f6f6b2d6d657373656e6765722e7376673f7374796c653d666c6174)](https://travis-ci.org/gomoob/php-facebook-messenger)[![Coverage](https://camo.githubusercontent.com/6b8c8c6e80476a58b1978349590cfc5ccd60a0f09d0ae57b146f654107cf544f/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f676f6d6f6f622f7068702d66616365626f6f6b2d6d657373656e6765722e7376673f7374796c653d666c6174)](https://coveralls.io/r/gomoob/php-facebook-messenger?branch=master)[![Code Climate](https://camo.githubusercontent.com/7804019f74275e68c2e8f57a0b8802472c1db1c935aec1da93150f3913eb52e4/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6769746875622f676f6d6f6f622f7068702d66616365626f6f6b2d6d657373656e6765722e7376673f7374796c653d666c6174)](https://codeclimate.com/github/gomoob/php-facebook-messenger)[![License](https://camo.githubusercontent.com/c7d188c417dc5c0d9d963a5ebcc34eed9d33fbdfcc196a16b43ac79021e1e275/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f676f6d6f6f622f7068702d66616365626f6f6b2d6d657373656e6765722e7376673f7374796c653d666c6174)](https://packagist.org/packages/gomoob/php-facebook-messenger)

First sample, creating a Facebook Messenger text message
--------------------------------------------------------

[](#first-sample-creating-a-facebook-messenger-text-message)

```
// Create a Facebook Messenger client
$client = Client::create()->setPageAccessToken('XXXX-XXX');

// Create a request to send a simple Text Message
$request = TextMessageRequest::create()
    ->setRecipient(Recipient::create()->setId('USER_ID'))
    ->setMessage(TextMessage::create()->setText('hello, world !'));

// Call the REST Web Service
$response = $client->sendMessage($textMessageRequest);

// Check if its ok
if($response->isOk()) {
    print 'Great, the message has been sent !';
} else {
    print 'Oups, the sent failed :-(';
    print 'Status code : ' . $response->getStatusCode();
    print 'Status message : ' . $response->getStatusMessage();
}
```

Easy, isn't it ?

Documentation
-------------

[](#documentation)

In progress.

About Gomoob
------------

[](#about-gomoob)

At [Gomoob](https://www.gomoob.com) we build high quality software with awesome Open Source frameworks everyday. Would you like to start your next project with us? That's great! Give us a call or send us an email and we will get back to you as soon as possible !

You can contact us by email at  or by phone number (+33) 6 85 12 81 26 or (+33) 6 28 35 04 49.

Visit also  to discover more Open Source softwares we develop.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 89.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~81 days

Total

4

Last Release

3045d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4852e6f187378c657f58d61a19e474105855a236b23255204baf14218c5c657f?d=identicon)[bgaillard](/maintainers/bgaillard)

![](https://www.gravatar.com/avatar/22dd33f77ada75e74bcd51e4a573d8ad99d13586c8220c5c5eb9228fc5eb3b03?d=identicon)[simonbaudry](/maintainers/simonbaudry)

---

Top Contributors

[![bgaillard](https://avatars.githubusercontent.com/u/1327782?v=4)](https://github.com/bgaillard "bgaillard (35 commits)")[![simonbaudry](https://avatars.githubusercontent.com/u/4026832?v=4)](https://github.com/simonbaudry "simonbaudry (4 commits)")

---

Tags

facebookfacebook-messengerfacebook-messenger-botfacebook-messenger-platformphppushnotificationpushwooshgomoob

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/gomoob-php-facebook-messenger/health.svg)

```
[![Health](https://phpackages.com/badges/gomoob-php-facebook-messenger/health.svg)](https://phpackages.com/packages/gomoob-php-facebook-messenger)
```

###  Alternatives

[minishlink/web-push

Web Push library for PHP

1.9k13.4M70](/packages/minishlink-web-push)[guanguans/notify

Push notification SDK(AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NotifyX、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

686111.2k8](/packages/guanguans-notify)[gomoob/php-pushwoosh

A PHP Library to easily send push notifications with the Pushwoosh REST Web Services.

66214.4k8](/packages/gomoob-php-pushwoosh)[edujugon/push-notification

Laravel Package to send push notifications to Android and IOS devices. (GCM,FCM,APN)

4861.4M1](/packages/edujugon-push-notification)[bentools/webpush-bundle

Send push notifications through Web Push Protocol to your Symfony users.

72285.7k](/packages/bentools-webpush-bundle)[hoy/pushwoosh

A Pushwoosh bridge for Laravel

3111.1k](/packages/hoy-pushwoosh)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
