Download the PHP package hexalogicdev/live-chat-module without Composer

On this page you can find all versions of the php package hexalogicdev/live-chat-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package live-chat-module

HexalogicDev — Live Chat Module

A complete, plug-and-play real-time live chat package for Laravel 8+.

Install it, add four .env keys, and a floating chat widget appears on every page of your Laravel application — no manual coding required.


Features


Requirements


Installation

1. Install via Composer

Package auto-discovery registers the service provider automatically.

2. Run the install command

This will:

3. Add environment variables

Add the following to your .env file:

4. Done!

Visit your app — the chat widget appears in the bottom-right corner. Visit /live-chat/admin to access the agent panel (requires authenticated user).


Broadcasting Server Setup

Option A — Pusher.com (easiest)

  1. Create a free account at pusher.com
  2. Create a Channels app
  3. Copy App ID, Key, Secret, and Cluster into your .env

Option B — Laravel Reverb (self-hosted, free)

Option C — Soketi (self-hosted, free)


Admin / Agent Panel

Navigate to:

You must be authenticated (uses the middleware defined by LIVE_CHAT_ADMIN_MIDDLEWARE, default: web,auth).

Agent features


Configuration Reference

After publishing (php artisan live-chat:publish --tag=config), see config/live-chat.php for all options:

Key Default Description
enabled true Enable or disable the entire package
route_prefix live-chat URL prefix for all routes
admin_middleware web,auth Middleware for agent panel routes
auto_inject true Auto-inject widget into HTML responses
broadcast_driver pusher Broadcasting driver
widget.title Live Support Widget header title
widget.welcome_message Hi there! How can we help you? Pre-chat welcome text
widget.primary_color #4f46e5 Brand colour (hex)
widget.position bottom-right bottom-right or bottom-left
widget.sound_enabled true Default sound notification state
max_message_length 2000 Maximum characters per message
typing_timeout 3 Seconds before typing indicator clears
history_limit 50 Messages loaded on conversation open
table_prefix chat_ Database table prefix
user_model App\Models\User The Eloquent user model

Manual Widget Placement

By default the widget is auto-injected before </body>. To place it manually:

  1. Set LIVE_CHAT_AUTO_INJECT=false in .env
  2. Add @livechat to your layout where you want the widget:

Note: Ensure your layout includes <meta name="csrf-token"> — the widget requires it for API calls.


Publishing Resources

Publish individual groups as needed:


Database Tables

Table Description
chat_conversations Each chat session (guest or authenticated user)
chat_messages Individual messages within a conversation
chat_agents Tracks which users are agents and their online status
chat_settings Key/value store for dynamic settings

All tables use the prefix defined by LIVE_CHAT_TABLE_PREFIX (default: chat_).


Security


Troubleshooting

Widget not showing

Real-time not working

403 on private channels

Migrations fail

Agent panel shows 404


Changelog

v1.0.0


License

MIT — see LICENSE


All versions of live-chat-module with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
illuminate/support Version ^8.0|^9.0|^10.0|^11.0
illuminate/broadcasting Version ^8.0|^9.0|^10.0|^11.0
illuminate/database Version ^8.0|^9.0|^10.0|^11.0
illuminate/events Version ^8.0|^9.0|^10.0|^11.0
illuminate/http Version ^8.0|^9.0|^10.0|^11.0
illuminate/routing Version ^8.0|^9.0|^10.0|^11.0
illuminate/console Version ^8.0|^9.0|^10.0|^11.0
pusher/pusher-php-server Version ^7.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package hexalogicdev/live-chat-module contains the following files

Loading the files please wait ...