Download the PHP package wirelabs/fluxchat without Composer
On this page you can find all versions of the php package wirelabs/fluxchat. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package fluxchat
FluxChat
A beautiful Laravel Livewire chat component built with Flux UI, supporting both standard polling and real-time messaging with Laravel Reverb.
โจ Features
- ๐จ Beautiful UI - Built with Flux UI components
- โก Real-time Support - Optional Laravel Reverb integration
- ๐ Fallback Polling - Works without WebSocket server
- ๐ Multi-language - English and Norwegian included
- ๐ฑ Responsive Design - Works on all devices
- ๐ง Highly Configurable - Customize everything
- ๐ Easy Installation - One command setup
๐ Requirements
- PHP 8.3+
- Laravel 12.0+
- Livewire 3.0+
- Flux UI Pro 2.0+
๐ Installation
Install via Composer:
Run the installation command:
Run migrations:
๐ฏ Basic Usage
Add the component to your Blade view:
Where $contacts
is a collection of users/contacts:
โ๏ธ Configuration
Publish the config file:
Basic Configuration
Environment Variables
Add to your .env
file:
๐ฅ Real-time Messaging
FluxChat supports two modes:
1. Standard Mode (Default)
- Polls for new messages every 5 seconds
- No additional server required
- Works everywhere
2. Real-time Mode
- Instant message delivery via WebSockets
- Requires Laravel Reverb
- Better user experience
To enable real-time messaging:
-
Install and configure Laravel Reverb:
-
Update your
.env
: - Start the Reverb server:
๐จ Customization
Custom Contact Model
Custom Styling
Publish the views to customize:
Views will be published to resources/views/vendor/fluxchat/
.
Language Customization
Publish language files:
Add your own translations in resources/lang/vendor/fluxchat/
.
๐ Advanced Usage
Programmatic Control
Events
Listen to FluxChat events:
๐งช Testing
๐ API Reference
Component Properties
Property | Type | Default | Description |
---|---|---|---|
contacts |
Collection/Array | [] |
Available contacts |
contactModel |
String | User::class |
Contact model class |
contactNameField |
String | 'name' |
Contact name field |
contactSearchFields |
Array | ['name'] |
Searchable fields |
maxContacts |
Integer | 10 |
Max contacts to show |
Models
Conversation
messages()
- Get all messagesparticipants()
- Get all participantsaddParticipant($user)
- Add participantmarkAsRead($user)
- Mark as read
Message
conversation()
- Get conversationsendable()
- Get senderisEdited()
- Check if edited
๐ ๏ธ Troubleshooting
Real-time not working
-
Check Reverb is running:
-
Verify configuration:
- Check browser console for WebSocket connections
Messages not updating
-
Ensure auto-refresh is enabled:
- Check Livewire is working:
๐ค Contributing
Contributions are welcome! Please see CONTRIBUTING.md for details.
๐ License
The MIT License (MIT). Please see License File for more information.
๐ Credits
- Built by Wirelabs
- Powered by Laravel
- UI by Flux UI
- Real-time by Laravel Reverb
Made with โค๏ธ by Wirelabs
All versions of fluxchat with dependencies
laravel/framework Version ^12.0
livewire/livewire Version ^3.0
livewire/flux-pro Version ^2.0