{"id":14987281,"url":"https://github.com/jrmadsen67/mahana-messaging-library-for-codeigniter","last_synced_at":"2025-04-11T23:52:34.187Z","repository":{"id":1568811,"uuid":"1998156","full_name":"jrmadsen67/Mahana-Messaging-library-for-CodeIgniter","owner":"jrmadsen67","description":"A small library to help jump start your internal messaging system, for the CodeIgniter framework","archived":false,"fork":false,"pushed_at":"2019-02-02T07:40:42.000Z","size":28,"stargazers_count":59,"open_issues_count":6,"forks_count":30,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-11T23:52:28.551Z","etag":null,"topics":["codeigniter","messaging","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jrmadsen67.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-07-05T01:30:14.000Z","updated_at":"2024-06-20T12:25:21.000Z","dependencies_parsed_at":"2022-08-21T12:10:14.299Z","dependency_job_id":null,"html_url":"https://github.com/jrmadsen67/Mahana-Messaging-library-for-CodeIgniter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrmadsen67%2FMahana-Messaging-library-for-CodeIgniter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrmadsen67%2FMahana-Messaging-library-for-CodeIgniter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrmadsen67%2FMahana-Messaging-library-for-CodeIgniter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrmadsen67%2FMahana-Messaging-library-for-CodeIgniter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jrmadsen67","download_url":"https://codeload.github.com/jrmadsen67/Mahana-Messaging-library-for-CodeIgniter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248497852,"owners_count":21113984,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codeigniter","messaging","php"],"created_at":"2024-09-24T14:14:22.499Z","updated_at":"2025-04-11T23:52:34.159Z","avatar_url":"https://github.com/jrmadsen67.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n\n\n\nName:  Mahana Messaging Library for CodeIgniter\n\nAuthor: Jeff Madsen\n        jrmadsen67@gmail.com\n        http://www.codebyjeff.com\n\nLocation: - git@github.com:jrmadsen67/Mahana-Messaging-library-for-CodeIgniter.git\n\nDescription:  CI library for linking to application's existing user table and creating basis of an internal messaging system\n           No views or controllers included - DO CHECK the README for setup instructions and notes\n\n\nWelcome to the Mahana Messaging Library for CodeIgniter\n\nThis 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:\n\n1) download from github at the above url\n\n2) there are 5 files (not including this README):\n\n    - mahana.sql  -- run this sql script in your database. Note that these tables are all InnoDB - Mahana uses transactions\n\n    - config/mahana.php -- you will need to set up your existing users table information here, following the sample data style\n\n    - language/english/mahana_lang.php -- all error and success messages can be changed here, or multilingual support can be added\n\n    -- models/mahana_model.php -- the database model\n\n    -- libraries/Mahana_messaging -- the main library file\n\n3) from your controller, load the library as either:\n\n    (Recommended)\n    $this-\u003eload-\u003elibrary('mahana_messaging');\n    $msg = $this-\u003emahana_messaging-\u003eget_message($msg_id, $sender_id);\n\n    or\n\n    $this-\u003eload-\u003elibrary('mahana_messaging');\n        $mahana = new Mahana_messaging();\n    $msg = $mahana-\u003eget_message($msg_id, $sender_id);\n\n4) All functions return the array:\n\n    $status['err']      1= error, 0 = no error\n    $status['code']     a specific code for that return value, found in config/mahana.php\n    $status['msg']      a configurable message, found in language/english/mahana_lang.php\n    $status['retval']   (optional) returned array of data\n\n5) Features\n\n    Mahana Messaging has a couple of small features you should be aware of:\n\n    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\n\n    2) all return messages are configurable and can be made multi-lingual\n\n    3) return array $status makes for easy conversion to json format for ajax-based systems\n\n    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.\n\n\nThank you for using Mahana Messaging! Please be sure to leave the author's credits in the library file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjrmadsen67%2Fmahana-messaging-library-for-codeigniter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjrmadsen67%2Fmahana-messaging-library-for-codeigniter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjrmadsen67%2Fmahana-messaging-library-for-codeigniter/lists"}