rtippin / messenger
Laravel messenger suite.
Fund package maintenance!
RTippin
Installs: 15 951
Dependents: 4
Suggesters: 0
Security: 0
Stars: 416
Watchers: 14
Forks: 81
Open Issues: 1
Requires
- php: ^8.1|^8.2|^8.3
- ext-json: *
- intervention/image: ^2.5
- joypixels/emoji-toolkit: ^6.0
- laravel/framework: ^11.0
Requires (Dev)
- orchestra/testbench: ^9.0
- phpunit/phpunit: ^10.0
- 2.x-dev
- 1.x-dev
- v1.23.0
- v1.22.1
- v1.22.0
- v1.21.0
- v1.20.0
- v1.19.1
- v1.19.0
- v1.18.0
- v1.17.0
- v1.16.1
- v1.16.0
- v1.15.1
- v1.15.0
- v1.14.0
- v1.13.1
- v1.13.0
- v1.12.0
- v1.11.1
- v1.11.0
- v1.10.0
- v1.9.0
- v1.8.1
- v1.8.0
- v1.7.4
- v1.7.3
- v1.7.2
- v1.7.1
- v1.7.0
- v1.6.1
- v1.6.0
- v1.5.2
- v1.5.1
- v1.5.0
- v1.4.0
- v1.3.0
- v1.2.0
- v1.1.1
- v1.1.0
- v1.0.2
- v1.0.1
- v1.0.0
- v0.47-alpha.0
- v0.46-alpha.0
- v0.45-alpha.0
- v0.44-alpha.0
- v0.43-alpha.0
- v0.42-alpha.1
- v0.42-alpha.0
- v0.41-alpha.3
- v0.41-alpha.2
- v0.41-alpha.1
- v0.41-alpha.0
- v0.40-alpha.0
- v0.39-alpha.0
- v0.38-alpha.1
- v0.38-alpha.0
- v0.37-alpha.1
- v0.37-alpha.0
- v0.36-alpha.1
- v0.36-alpha.0
- v0.35-alpha.3
- v0.35-alpha.2
- v0.35-alpha.1
- v0.35-alpha.0
- v0.34-alpha.0
- v0.33-alpha.2
- v0.33-alpha.1
- v0.33-alpha.0
- v0.32-alpha.2
- v0.32-alpha.1
- v0.32-alpha.0
- v0.31-alpha.3
- v0.31-alpha.2
- v0.31-alpha.1
- v0.31-alpha.0
- v0.30-alpha.0
- v0.29-alpha.3
- v0.29-alpha.2
- v0.29-alpha.1
- v0.29-alpha.0
- v0.28-alpha.1
- v0.28-alpha.0
- v0.27-alpha.1
- v0.27-alpha.0
- v0.26-alpha.8
- v0.26-alpha.7
- v0.26-alpha.6
- v0.26-alpha.5
- v0.26-alpha.4
- v0.26-alpha.3
- v0.26-alpha.2
- v0.26-alpha.1
- v0.26-alpha.0
- v0.25-alpha.0
- v0.24-alpha.5
- v0.24-alpha.4
- v0.24-alpha.3
- v0.24-alpha.2
- v0.24-alpha.1
- v0.24-alpha.0
- v0.23-alpha.3
- v0.23-alpha.2
- v0.23-alpha.1
- v0.23-alpha.0
- v0.22-alpha.5
- v0.22-alpha.4
- v0.22-alpha.3
- v0.22-alpha.2
- v0.22-alpha.1
- v0.22-alpha.0
- v0.21-alpha.2
- v0.21-alpha.1
- v0.21-alpha.0
- v0.20-alpha.1
- v0.20-alpha.0
- v0.19-alpha.6
- v0.19-alpha.5
- v0.19-alpha.4
- v0.19-alpha.3
- v0.19-alpha.2
- v0.19-alpha.1
- v0.19-alpha.0
- v0.18-alpha.1
- v0.18-alpha.0
- v0.17-alpha.0
- v0.16-alpha.0
- v0.15-alpha.0
- v0.14-alpha.0
- v0.13-alpha.0
- v0.12-alpha.0
- v0.11-alpha.0
- v0.10-alpha.0
- v0.9-alpha.1
- v0.9-alpha.0
- v0.8-alpha.2
- v0.8-alpha.1
- v0.8-alpha.0
- v0.7-alpha.2
- v0.7-alpha.1
- v0.7-alpha.0
- v0.6-alpha.4
- v0.6-alpha.3
- v0.6-alpha.2
- v0.6-alpha.1
- v0.6-alpha.0
- v0.5-alpha.2
- v0.5-alpha.1
- v0.5-alpha.0
- v0.4-alpha.9
- v0.4-alpha.8
- v0.4-alpha.7
- v0.4-alpha.6
- v0.4-alpha.5
- v0.4-alpha.4
- v0.4-alpha.3
- v0.4-alpha.2
- v0.4-alpha.1
- v0.4-alpha.0
- v0.3-alpha.1
- v0.2-alpha.1
- v0.2-alpha.0
- v0.1-alpha.6
- v0.1-alpha.5
- v0.1-alpha.4
- v0.1-alpha.3
- v0.1-alpha.2
- v0.1-alpha.1
- dev-dev
- dev-master
This package is auto-updated.
Last update: 2024-10-23 21:37:46 UTC
README
Prerequisites
- Route model binding enabled in your API / WEB middleware groups.
Features
- Realtime messaging between multiple models.
- RESTful API, allowing you to create your own UI or connect to your mobile app.
- Private and group threads.
- Message reactions, replies, edits, and deletion.
- Send image, document, audio, and video messages.
- Group thread chat-bots. Ready-made bots
- Customize and create your own chat-bot handlers and bot packages. See the Chat Bots documentation.
- Add participants in a group thread from your friends list.
- Permissions per participant within a group thread.
- Friends, Search, and Online status systems.
- Private thread approval when the two participants are not friends.
- Provider avatars, group thread avatars, and bot avatars.
- Underlying calling system you can extend. See the Calling documentation.
- Group thread invitation links (like discord).
- All endpoints are protected behind policies.
- Scheduled commands for automated cleanup and checks.
- Queued jobs fired from our event subscribers.
- Most features can be toggled at runtime using our
Messenger
facade. MessengerComposer
facade allows you to have easy access to the core actions anywhere within your own app, such as sending messages, images, reactions, and more.- You can implement or extend your own
BroadcastDriver
,VideoDriver
, andFriendDriver
, simply by binding your classes into the container. - Support for morph maps on your provider models. See: Morph Maps
- Optional extra payload when sending messages to allow custom json to be stored with the message.
- Owner relationships returns a
Ghost Profile
when not found (null-object pattern). - Private threads auto-lock when the recipient is not found / deleted.
Upcoming for v2
- Please see the 2.x Branch for more information.
Notes
- This is a
Laravel
package and must be installed in alaravel
application to run. - Read through the
messenger.php
config file before migrating! - This is a pure backend driven package providing an API to interact with, thus no web UI or websocket implementation will be setup for you.
- Calling is disabled by default. You are responsible for implementing your own media server or connecting to a 3rd party provider.
- Configure your laravel applications broadcast driver and set up your websocket implementation to utilize the real-time broadcast emitted.
Installation
Composer
composer require rtippin/messenger
To complete the setup, please refer to the installation documentation listed below:
Documentation
-
Install / Registering Providers
-
Configuration
-
Commands
-
Broadcasting
-
Events
-
Chat Bots
-
Calling
-
Messenger Composer
-
Helpers / Facades
-
API Explorer
Addons / Demo
- Messenger Bots - Pre-made bots you can register within this package.
- Messenger Faker - Adds commands useful in development environments to mock/seed realtime events and messages.
- Messenger Web UI - Ready-made web routes and publishable views / assets, including default images.
- Demo App - A demo laravel app with this core package installed, including a Live Demo.
Credits - Richard Tippin
LICENSE
CHANGELOG
Security
If you discover any security related issues, please email author instead of using the issue tracker.