PHPackages                             jocoonopa/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. [API Development](/categories/api)
4. /
5. jocoonopa/messenger

ActiveLibrary[API Development](/categories/api)

jocoonopa/messenger
===================

PHP Library to interact with Facebook Messenger Platform

3.5.48(1mo ago)020.0kMITPHPPHP &gt;=7.3.0

Since Dec 16Pushed 1mo agoCompare

[ Source](https://github.com/jocoonopa/messenger)[ Packagist](https://packagist.org/packages/jocoonopa/messenger)[ Docs](https://github.com/ker0x/messenger)[ RSS](/packages/jocoonopa-messenger/feed)WikiDiscussions main Synced 2w ago

READMEChangelogDependencies (14)Versions (77)Used By (0)

 [ ![CI](https://camo.githubusercontent.com/9bbaa072c303a41ca2c38045cc57a3361e8400b175d722ed60ff8ca494dec403/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6b657230782f6d657373656e6765722f63693f7374796c653d666f722d7468652d6261646765) ](https://github.com/ker0x/messenger/actions?query=workflow%3Aci "CI") [ ![Coverage](https://camo.githubusercontent.com/5137772c69abfc3c357ed9e26b6b1d9a4207c963f363bcfa8e58d12c1c12c5ee/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f67682f6b657230782f6d657373656e6765723f7374796c653d666f722d7468652d6261646765) ](https://codecov.io/gh/ker0x/messenger/ "Coverage") [ ![PHP Version](https://camo.githubusercontent.com/f2c089bfeca86135ecc6da9f93a10546af3e877d6f27f197d998a9bccc83484e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230372e332d3838393242462e7376673f7374796c653d666f722d7468652d6261646765) ](https://php.net "PHP Version") [ ![Downloads](https://camo.githubusercontent.com/3b47333796216e3f76f80cb987b7f35cea35264af4d3afe2f52c35e97687536b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b65726f782f6d657373656e6765722e7376673f7374796c653d666f722d7468652d6261646765) ](https://packagist.org/packages/kerox/messenger "Downloads") [ ![Latest Stable Version](https://camo.githubusercontent.com/ab5fb5eed30a3280845cd03bb55a1ad51b0754fe0696f2529122ef6ea99e4264/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b65726f782f6d657373656e6765722e7376673f7374796c653d666f722d7468652d6261646765) ](https://packagist.org/packages/kerox/messenger "Latest Stable Version") [ ![License](https://camo.githubusercontent.com/e81d37e32367d6da754bf741824032fda93e12dd241ec8acea4ed57af820a1a6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6b65726f782f6d657373656e6765722e7376673f7374796c653d666f722d7468652d6261646765) ](https://packagist.org/packages/kerox/messenger "License")

Messenger
=========

[](#messenger)

A PHP library to interact with [Facebook Messenger Platform](https://www.messenger.com/)

Installation
------------

[](#installation)

You can install Messenger using Composer:

```
composer require kerox/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
-----------

[](#basic-usage)

```
use Kerox\Messenger\Messenger;

$messenger = new Messenger($appSecret, $verifyToken, $pageToken)
$messenger->send()->message(, 'Hello world!');
```

Advance usage
-------------

[](#advance-usage)

Please, refer to the [wiki](https://github.com/ker0x/messenger/wiki) to learn how to use this library

Features
--------

[](#features)

### API

[](#api)

- Broadcast (deprecated)
- Code (deprecated)
- Insights
- Nlp
- Persona
- Profile
- Send
- Tag
- Thread
- User
- Webhook

### Templates

[](#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

[](#callback)

- Account Linking
- AppRoles
- Checkout Update
- Delivery
- GamePlay
- Message
- Message Echo
- Optin
- PassThreadControl
- Payment
- Policy Enforcement
- Postback
- Pre Checkout
- Read
- Reaction
- Referral
- RequestThreadControl
- TakeThreadControl

###  Health Score

53

—

FairBetter than 96% of packages

Maintenance92

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 63.5% 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 ~46 days

Recently: every ~86 days

Total

75

Last Release

38d ago

Major Versions

1.4.0 → 2.0.02018-01-09

1.x-dev → 2.1.02018-04-30

2.1.1 → 3.0.02018-10-13

2.5.42 → 3.5.422024-09-05

PHP version history (4 changes)1.0.0PHP &gt;=7.0

1.3.0PHP &gt;=7.0.0

2.0.0PHP &gt;=7.1.0

3.4.0PHP &gt;=7.3.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4261007?v=4)[jocoonopa](/maintainers/jocoonopa)[@jocoonopa](https://github.com/jocoonopa)

---

Top Contributors

[![ker0x](https://avatars.githubusercontent.com/u/5331654?v=4)](https://github.com/ker0x "ker0x (125 commits)")[![jocoonopa](https://avatars.githubusercontent.com/u/4261007?v=4)](https://github.com/jocoonopa "jocoonopa (48 commits)")[![misantron](https://avatars.githubusercontent.com/u/9839955?v=4)](https://github.com/misantron "misantron (7 commits)")[![dariuszkaminski](https://avatars.githubusercontent.com/u/2848402?v=4)](https://github.com/dariuszkaminski "dariuszkaminski (6 commits)")[![BFoucher](https://avatars.githubusercontent.com/u/16239924?v=4)](https://github.com/BFoucher "BFoucher (3 commits)")[![atgg](https://avatars.githubusercontent.com/u/19331848?v=4)](https://github.com/atgg "atgg (2 commits)")[![Khodl](https://avatars.githubusercontent.com/u/5112493?v=4)](https://github.com/Khodl "Khodl (2 commits)")[![nferbei](https://avatars.githubusercontent.com/u/44701016?v=4)](https://github.com/nferbei "nferbei (1 commits)")[![mferrara](https://avatars.githubusercontent.com/u/795065?v=4)](https://github.com/mferrara "mferrara (1 commits)")[![gregweston](https://avatars.githubusercontent.com/u/2664985?v=4)](https://github.com/gregweston "gregweston (1 commits)")[![htaoufikallah](https://avatars.githubusercontent.com/u/250642?v=4)](https://github.com/htaoufikallah "htaoufikallah (1 commits)")

---

Tags

apifacebookMessengerbot messengerfacebook messenger

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jocoonopa-messenger/health.svg)

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[algolia/algoliasearch-client-php

API powering the features of Algolia.

69634.4M144](/packages/algolia-algoliasearch-client-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.7k371.6k6](/packages/theodo-group-llphant)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

232.5k](/packages/eslazarev-wildberries-sdk)[kerox/messenger

PHP Library to interact with Facebook Messenger Platform

58313.3k1](/packages/kerox-messenger)

PHPackages © 2026

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