PHPackages                             jrmadsen67/mahana-messaging-library-for-codeigniter - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. jrmadsen67/mahana-messaging-library-for-codeigniter

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jrmadsen67/mahana-messaging-library-for-codeigniter
===================================================

CodeIgniter library for internal application messaging

592630[5 issues](https://github.com/jrmadsen67/Mahana-Messaging-library-for-CodeIgniter/issues)PHP

Since Aug 20Pushed 8mo ago8 watchersCompare

[ Source](https://github.com/jrmadsen67/Mahana-Messaging-library-for-CodeIgniter)[ Packagist](https://packagist.org/packages/jrmadsen67/mahana-messaging-library-for-codeigniter)[ RSS](/packages/jrmadsen67-mahana-messaging-library-for-codeigniter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Name: Mahana Messaging Library for CodeIgniter

Author: Jeff Madsen

Location: - :jrmadsen67/Mahana-Messaging-library-for-CodeIgniter.git

Description: CI library for linking to application's existing user table and creating basis of an internal messaging system No views or controllers included - DO CHECK the README for setup instructions and notes

Welcome to the Mahana Messaging Library for CodeIgniter

This library is intended as a starting off point for building an internal messaging system for your CodeIgniter application. It does NOT include any controllers or views. To use this library:

1. download from github at the above url
2. there are 5 files (not including this README):

    - mahana.sql -- run this sql script in your database. Note that these tables are all InnoDB - Mahana uses transactions
    - config/mahana.php -- you will need to set up your existing users table information here, following the sample data style
    - language/english/mahana\_lang.php -- all error and success messages can be changed here, or multilingual support can be added

    \-- models/mahana\_model.php -- the database model

    \-- libraries/Mahana\_messaging -- the main library file
3. from your controller, load the library as either:

    (Recommended) $this-&gt;load-&gt;library('mahana\_messaging'); $msg = $this-&gt;mahana\_messaging-&gt;get\_message($msg\_id, $sender\_id);

    or

    $this-&gt;load-&gt;library('mahana\_messaging'); $mahana = new Mahana\_messaging(); $msg = $mahana-&gt;get\_message($msg\_id, $sender\_id);
4. All functions return the array:

    $status\['err'\] 1= error, 0 = no error $status\['code'\] a specific code for that return value, found in config/mahana.php $status\['msg'\] a configurable message, found in language/english/mahana\_lang.php $status\['retval'\] (optional) returned array of data
5. Features

    Mahana Messaging has a couple of small features you should be aware of:

    1. using the config/mahana.php constants USER\_TABLE\_TABLENAME, USER\_TABLE\_ID, USER\_TABLE\_USERNAME you may quickly and easily integrate the messaging library with your exisiting user table
    2. all return messages are configurable and can be made multi-lingual
    3. return array $status makes for easy conversion to json format for ajax-based systems
    4. get\_full\_thread() and get\_all\_threads() have a unique parameter - $full\_thread. If set to true, a newly added participant to a thread can see all messages dating BEFORE he was added, allowing him to "catch up" on the conversation. Ideal for adding a manager or a new salesperson to a conversation.

Thank you for using Mahana Messaging! Please be sure to leave the author's credits in the library file.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance40

Moderate activity, may be stable

Popularity22

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 Bus Factor1

Top contributor holds 73.3% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/68a4d9bb38657f2c9360f5e953323185bde37c17a22e38848215a876e399e9bd?d=identicon)[jrmadsen67](/maintainers/jrmadsen67)

---

Top Contributors

[![jrmadsen67](https://avatars.githubusercontent.com/u/821958?v=4)](https://github.com/jrmadsen67 "jrmadsen67 (22 commits)")[![mirzadelic](https://avatars.githubusercontent.com/u/1878794?v=4)](https://github.com/mirzadelic "mirzadelic (3 commits)")[![martindrapeau](https://avatars.githubusercontent.com/u/104156?v=4)](https://github.com/martindrapeau "martindrapeau (2 commits)")[![atefBB](https://avatars.githubusercontent.com/u/10966925?v=4)](https://github.com/atefBB "atefBB (1 commits)")[![itsjw](https://avatars.githubusercontent.com/u/10774154?v=4)](https://github.com/itsjw "itsjw (1 commits)")[![solstyc](https://avatars.githubusercontent.com/u/4953166?v=4)](https://github.com/solstyc "solstyc (1 commits)")

---

Tags

codeignitermessagingphp

### Embed Badge

![Health badge](/badges/jrmadsen67-mahana-messaging-library-for-codeigniter/health.svg)

```
[![Health](https://phpackages.com/badges/jrmadsen67-mahana-messaging-library-for-codeigniter/health.svg)](https://phpackages.com/packages/jrmadsen67-mahana-messaging-library-for-codeigniter)
```

###  Alternatives

[laracrafts/laravel-url-shortener

Powerful URL shortening tools in Laravel

97110.7k](/packages/laracrafts-laravel-url-shortener)[ffi/location

PHP library for determining the physical location of binaries

1339.8k7](/packages/ffi-location)

PHPackages © 2026

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