Download the PHP package towoju5/basement-chat without Composer

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

Basement Chat

Add a real-time chat widget to your Laravel application.

basement-chat.webm

GitHub Workflow Test Status Code Coverage Packagist Version Packagist License Semantic Release

Built for Packagist Laravel Version With Packagist PHP Version

Table of Contents

Introduction

With this package, you can enhance user engagement, boost collaboration, and facilitate instant communication within your existing Laravel application by providing seamlessly integrated dynamic and interactive real-time chat widget functionality.

Trivia The Basement name was inspired by Aech's private chat room from [Ready Player One](https://readyplayerone.fandom.com/wiki/Basement).

Features

Demo

Here is a demo with scaffolding using Laravel Breeze.

Installation

Requirements:

Installation steps:

Configurations

This package publishes a config/basement.php configuration file and offers options to configure broadcaster, chat_box_widget_position, user_model, avatar, and middleware. See this file for more detailed information on what you can configure.

Advanced Customizations

Other than configuring through the config/basement.php file, you can customize further by changing the class implementation or overriding the default method. Let's explore some of the use cases you can do with this feature:

Changing the name shown in the contacts

By default, the Basement Chat package will display the user's full name in your contacts list. If you want to show the last name instead, you can override the getNameAttribute as in the following example:

Using custom avatars

Like when you are changing the name shown in the contacts. You can also override the default getAvatarAttribute to change your contact's avatar.

Providing the chat feature to specific users

Instead of providing the chat feature to all available users, you can also conditionally provide the chat feature to specific users. For example, if you are using spatie/laravel-permission and want to provide a chat feature only for the administrator role:

The following is a list of functions that you can use to override other actions and models:

Customizing view styles

It is also possible to customize the view style. For example, you can do the following steps to change the color of the header and icon of a chat box component:

Extra Notes and Troubleshooting

Updating package

When you are using pre-bundled assets. Every time after updating this package with composer update, you need to keep your assets file up to date using the following command:

Alternatively, to run the above command automatically after the update command is executed, you can configure composer.json by adding it to the post-update-cmd scripts:

Fixing Vite memory leaks

When you are using the Vite development server and get very high memory usage, you can configure your vite.config.js to ignore watching the vendor folder like the following example:

Broadcasting auth error when using route cache

Basement Chat package may fail to start and you may get a 403 Forbidden - HTTP Error when accessing the broadcasting/auth endpoint in the browser console when you use the php artisan route:cache command. The solution to this problem is still under further investigation, we recommend that you do not use route caching feature at this time.

Roadmap

Please visit the following page to view the Basement Chat roadmap.

Contributing

You can check detailed information about the contributing guide on the following page.

License

The Basement Chat package is licensed under the MIT license.


All versions of basement-chat with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
laravel/framework Version >=9.0.0
laravel/sanctum Version *
spatie/enum Version *
spatie/laravel-package-tools Version *
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 towoju5/basement-chat contains the following files

Loading the files please wait ...