PHPackages                             joegabdelsater/messaging-backend - 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. joegabdelsater/messaging-backend

ActiveLibrary

joegabdelsater/messaging-backend
================================

This package is a plug and play package for a simple messaging backend

5.0.0(2y ago)021MITPHP

Since Jul 11Pushed 2y ago1 watchersCompare

[ Source](https://github.com/joegabdelsater/messaging-backend)[ Packagist](https://packagist.org/packages/joegabdelsater/messaging-backend)[ RSS](/packages/joegabdelsater-messaging-backend/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (6)Used By (0)

Promo Codes Description
=======================

[](#promo-codes-description)

This is a simple package to add a messaging feature to any project. It works independently from other features.

Note: You should have the users model/table present.

Installation
============

[](#installation)

`composer require joegabdelsater/messaging-backend``php artisan vendor:publish` to publish models `php artisan migrate` to run the migrations

Usage
=====

[](#usage)

To use the library you need to use the facade in your code by adding this line to the top of the file:

`use Joegabdelsater\PromoCodes\Facades\MessagingBackend;`

Functions
=========

[](#functions)

Create chat
-----------

[](#create-chat)

`create($user_1_id, $user_2_id)`

Get Chat by Id
--------------

[](#get-chat-by-id)

`getById($chatId)`

Get Chat by user ids
--------------------

[](#get-chat-by-user-ids)

`getByUsers($user_1_id, $user_2_id)`

Create Message Using Chat Id
----------------------------

[](#create-message-using-chat-id)

`createMessageByChatId($chat_id, $message, $sender_id)`

Create Message Using User Ids
-----------------------------

[](#create-message-using-user-ids)

`createMessageByUserIds($user_1_id, $user_2_id, $sender_id, $message)`

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~26 days

Total

5

Last Release

930d ago

Major Versions

v1.0.0 → v2.0.02023-07-13

v2.0.0 → v3.0.02023-07-13

v3.0.0 → v4.0.02023-07-17

v4.0.0 → 5.0.02023-10-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b5c002fe05d2c0e956d4b6bc759d92471b191dd2a8ca33a0dfa3de8d363d0a7?d=identicon)[joegabdelsater](/maintainers/joegabdelsater)

---

Top Contributors

[![joegabdelsater](https://avatars.githubusercontent.com/u/23471249?v=4)](https://github.com/joegabdelsater "joegabdelsater (7 commits)")

### Embed Badge

![Health badge](/badges/joegabdelsater-messaging-backend/health.svg)

```
[![Health](https://phpackages.com/badges/joegabdelsater-messaging-backend/health.svg)](https://phpackages.com/packages/joegabdelsater-messaging-backend)
```

PHPackages © 2026

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