Download the PHP package mtallalmansoor786/chat-package without Composer

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

Chat Package for Laravel

A peer-to-peer chat package for Laravel with real-time messaging using Pusher. This package provides a complete chat solution with chat rooms, peer management, and real-time message broadcasting.

Features

Installation

Method 1: Composer Require (Recommended - After Publishing)

Once published to Packagist or a Git repository:

Then:

  1. Add Pusher credentials to .env
  2. Run php artisan migrate
  3. Access /chat

That's it! Works like any other Composer package.

Method 2: Local Development (Current Project)

This package is already installed in the current project. See INSTALLATION.md for details.

Method 3: Copy Package (Before Publishing)

To use this package in a different Laravel project before publishing:


Publishing to Composer

Want to make it installable via composer require? See:

Quick Steps:

  1. Push package to GitHub
  2. Submit to Packagist (or use private repo)
  3. Install anywhere with: composer require mtallalmansoor786/chat-package

Installation (Existing Project)

Step 1: Install via Composer

Add the package to your Laravel project's composer.json:

Then run:

Step 2: Configure Pusher

Add your Pusher credentials to your .env file:

Step 3: Publish Configuration (Optional)

Step 4: Run Migrations

The package will automatically use your parent project's database connection. Run migrations:

Step 5: Install Pusher PHP SDK (if not already installed)

Usage

Access Chat Interface

Once installed, you can access the chat interface at:

Create Chat Rooms

Users can create chat rooms and add peers. Each chat room displays:

API Routes

The package provides the following routes (all prefixed with /chat):

Configuration

The package automatically reads Pusher configuration from your parent project's .env file. No additional configuration is needed unless you want to customize:

Database Tables

The package creates the following tables:

All tables use your parent project's default database connection automatically.

Architecture

This package follows SOLID principles and implements the Repository Pattern:

Code Structure

See SOLID_PRINCIPLES.md for detailed documentation.

Requirements

License

MIT


All versions of chat-package with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^12.0
pusher/pusher-php-server Version ^7.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 mtallalmansoor786/chat-package contains the following files

Loading the files please wait ...