https://github.com/cmgmyr/laravel-messenger
Simple user messaging package for Laravel
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.8%) to scientific vocabulary
Keywords
Repository
Simple user messaging package for Laravel
Basic Info
Statistics
- Stars: 2,535
- Watchers: 96
- Forks: 522
- Open Issues: 3
- Releases: 61
Topics
Metadata Files
readme.md
Laravel Messenger
This package will allow you to add a full user messaging system into your Laravel application.
Leave some feedback
How are you using laravel-messenger?
Features
- Multiple conversations per user
- Optionally loop in additional users with each new message
- View the last message for each thread available
- Returns either all messages in the system, all messages associated to the user, or all message associated to the user with new/unread messages
- Return the users unread message count easily
- Very flexible usage so you can implement your own access control
Common uses
- Open threads (everyone can see everything)
- Group messaging (only participants can see their threads)
- One to one messaging (private or direct thread)
Laravel Versions
Laravel | Messenger --- | --- 4.* | 1.* 5.0-5.4 | <= 2.16.2 5.5+ | 2.*
Installation (Laravel 4.x - no longer actively supported)
Installation instructions for Laravel 4 can be found here.
Installation (Laravel 5.x)
composer require cmgmyr/messenger
Or place manually in composer.json:
"require": {
"cmgmyr/messenger": "~2.0"
}
Run:
composer update
Add the service provider to config/app.php under providers:
php
'providers' => [
Cmgmyr\Messenger\MessengerServiceProvider::class,
],
Note: If you are using Laravel 5.5, this step is unnecessary. Laravel Messenger supports Package Discovery.
Publish config:
php artisan vendor:publish --provider="Cmgmyr\Messenger\MessengerServiceProvider" --tag="config"
Update config file to reference your User Model:
config/messenger.php
Create a users table if you do not have one already. If you need one, the default Laravel migration will be satisfactory.
(Optional) Define names of database tables in package config file if you don't want to use default ones:
php
'messages_table' => 'messenger_messages',
'participants_table' => 'messenger_participants',
'threads_table' => 'messenger_threads',
Publish migrations:
php artisan vendor:publish --provider="Cmgmyr\Messenger\MessengerServiceProvider" --tag="migrations"
Migrate your database:
php artisan migrate
Add the trait to your user model:
```php use Cmgmyr\Messenger\Traits\Messagable;
class User extends Authenticatable { use Messagable; } ```
Examples
Example Projects
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
Special Thanks
This package used AndreasHeiberg/laravel-messenger as a starting point.
Owner
- Name: Chris Gmyr
- Login: cmgmyr
- Kind: user
- Location: Raleigh, NC
- Company: @pathccm
- Website: https://chrisgmyr.dev
- Twitter: cmgmyr
- Repositories: 32
- Profile: https://github.com/cmgmyr
husband & dad, developer, entrepreneur. loves Laravel and coffee. staff engineer at @pathccm | co-organizer of @trianglephp Rula GH: @cgmyr-rula
GitHub Events
Total
- Create event: 1
- Release event: 1
- Issues event: 1
- Watch event: 84
- Issue comment event: 4
- Push event: 2
- Pull request event: 2
- Fork event: 9
Last Year
- Create event: 1
- Release event: 1
- Issues event: 1
- Watch event: 84
- Issue comment event: 4
- Push event: 2
- Pull request event: 2
- Fork event: 9
Committers
Last synced: 9 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Chris Gmyr | c****r@g****m | 213 |
| a-komarev | e****l@c****u | 28 |
| Pascal Baljet | p****l@p****l | 6 |
| C0kkie | 2****e | 4 |
| Laravel Shift | s****t@l****m | 3 |
| kenny11cz | d****n@g****m | 3 |
| Ashley Rich | h****o@a****m | 2 |
| Nguyen Dat | k****1@g****m | 2 |
| Ognjen MIletić | o****c@g****m | 2 |
| RobotChief | M****A | 2 |
| anhskohbo | a****o@g****m | 2 |
| Eliran Elnasi | t****z@g****m | 1 |
| Jesse Szypulski | j****e@f****m | 1 |
| = | n****v@g****m | 1 |
| Abdullah Al-Faqeir | a****r@g****m | 1 |
| Adam Wathan | a****n@g****m | 1 |
| Chun-Sheng, Li | p****k@g****m | 1 |
| Igor Babko | i****o@s****m | 1 |
| Maxime | d****x@g****m | 1 |
| Michael Messerli | m****i@g****m | 1 |
| Mickaël Andrieu | a****l@g****m | 1 |
| Peter | p****i@g****m | 1 |
| Raj Janorkar | 6****r | 1 |
| Raoul | r****n@g****m | 1 |
| Robert Fridzema | f****a@g****m | 1 |
| Serhii Petrov | s****6@g****m | 1 |
| Server | k****y@g****u | 1 |
| Thomas H.D | t****s@d****g | 1 |
| injektion | m****t@i****m | 1 |
| tzook bar noy | t****b@g****m | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 79
- Total pull requests: 32
- Average time to close issues: 10 months
- Average time to close pull requests: 2 months
- Total issue authors: 67
- Total pull request authors: 20
- Average comments per issue: 4.66
- Average comments per pull request: 2.84
- Merged pull requests: 22
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 1
- Pull requests: 2
- Average time to close issues: N/A
- Average time to close pull requests: 19 days
- Issue authors: 1
- Pull request authors: 1
- Average comments per issue: 0.0
- Average comments per pull request: 3.5
- Merged pull requests: 2
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- cmgmyr (7)
- omidMolaverdi (3)
- tim-peterson (2)
- debuGhy (2)
- vaishnavmhetre (2)
- jsuske1985 (2)
- timramseyjr (1)
- ahoiroman (1)
- lorenzoaiello (1)
- CreationLee (1)
- louiskareem (1)
- aliwesome (1)
- Lukada-taiya (1)
- dmarman (1)
- deviddev (1)
Pull Request Authors
- cmgmyr (8)
- laravel-shift (5)
- RomainMazB (2)
- AbdullahFaqeir (2)
- TasneemWahdan (2)
- antonkomarev (1)
- thdebay (1)
- gareth-ib (1)
- C0kkie (1)
- messerli90 (1)
- shailesh-ladumor (1)
- ghost (1)
- BurningDog (1)
- igorbabko (1)
- sergiy-petrov (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- packagist 2,202,268 total
- Total docker downloads: 16
- Total dependent packages: 8
- Total dependent repositories: 230
- Total versions: 62
- Total maintainers: 1
packagist.org: cmgmyr/messenger
Simple user messaging tool for Laravel
- License: MIT
-
Latest release: 2.31.0
published 12 months ago
Rankings
Maintainers (1)
Funding
- url: https://github.com/cmgmyr: type: github
Dependencies
- doctrine/dbal ^3.1.2|^2.13.3 development
- fakerphp/faker ^1.16 development
- friendsofphp/php-cs-fixer ^3.2|^2.18 development
- orchestra/testbench ^3.0|^4.0|^5.0|^6.0|^7.0 development
- phpunit/phpunit ^8.0|^9.3.3 development
- illuminate/config ^5.5|^6.0|^7.0|^8.0|^9.0
- illuminate/database ^5.5|^6.0|^7.0|^8.0|^9.0
- illuminate/support ^5.5|^6.0|^7.0|^8.0|^9.0
- php ^7.2|^8.0
- actions/checkout v2 composite
- docker://oskarstark/php-cs-fixer-ga * composite
- stefanzweifel/git-auto-commit-action v4 composite
- actions/cache v2 composite
- actions/checkout v2 composite
- shivammathur/setup-php v2 composite
- mysql 8.0 docker
- actions/cache v2 composite
- actions/checkout v2 composite
- shivammathur/setup-php v2 composite
- postgres latest docker
- actions/cache v2 composite
- actions/checkout v2 composite
- shivammathur/setup-php v2 composite