Download the PHP package muba00/laravel-live-chat without Composer

On this page you can find all versions of the php package muba00/laravel-live-chat. 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 laravel-live-chat

Laravel Live Chat

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

A simple, elegant Laravel package that adds real-time 1-to-1 chat functionality to your application using Laravel Reverb. Easy to install, easy to use, and follows Laravel best practices.

โœจ Features

๐ŸŽจ Frontend Components Coming Soon! Complete React, Vue 3, and Livewire UI components are currently in development. For now, you can use the backend API to build your own custom frontend.

๐Ÿ“‹ Requirements

๐Ÿš€ Quick Start

1. Install the Package

2. Run the Installer

This interactive command will:

3. Configure Broadcasting

Install Laravel Reverb:

4. Configure Authentication

If not already done, install Laravel Sanctum:

5. Install Frontend Dependencies

6. Start Using the Chat!

Backend - Create a conversation and send a message:

Frontend - Build your own custom UI:

Use the provided API endpoints to build your custom chat interface. Complete frontend components for React, Vue 3, and Livewire are coming soon!

๐Ÿ“– Documentation

Installation

Manual Installation (Alternative)

If you prefer to install manually instead of using the installer command:

Configuration

The package configuration file is published to config/live-chat.php. Here are the key configuration options:

Environment Variables

You can override configuration using environment variables:

Usage

Backend API

The package automatically registers RESTful API routes:

Using Models

Frontend Integration

The package provides a RESTful API for building custom chat interfaces. Complete frontend components for React, Vue 3, and Livewire are currently in development.

Example API Usage

Broadcasting Setup

Configure Laravel Reverb

Add to your .env:

Setup Laravel Echo

In your resources/js/bootstrap.js:

Start Reverb Server

For production, use a process manager like Supervisor.

Artisan Commands

Install Command

Cleanup Command

Schedule cleanup automatically:

Security

The package includes built-in authorization:

Customization

Customize Models

You can extend the package models in your application:

Then update your config to use your custom model.

Disable Auto-registered Routes

Then register routes manually in your routes/api.php.

๐Ÿงช Testing

๐Ÿ—‘๏ธ Uninstalling

๐Ÿ“š Additional Resources

๐Ÿ› Troubleshooting

Messages not appearing in real-time

  1. Check Reverb is running: php artisan reverb:start
  2. Verify .env configuration for Reverb
  3. Check browser console for WebSocket errors
  4. Ensure Laravel Echo is properly initialized

Authorization errors

  1. Verify Sanctum is installed and configured
  2. Check API token is being sent in requests
  3. Ensure user is part of the conversation

Database errors

  1. Run migrations: php artisan migrate
  2. Check table names in config match your setup
  3. Verify user model configuration

๐Ÿค Contributing

Please see CONTRIBUTING for details.

๐Ÿ”’ Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

๐Ÿ“ Changelog

Please see CHANGELOG for more information on what has changed recently.

๐Ÿ‘ Credits

๐Ÿ“„ License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-live-chat with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^11.0||^12.0
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 muba00/laravel-live-chat contains the following files

Loading the files please wait ...