Giter Site home page Giter Site logo

ilmedova / chattle Goto Github PK

View Code? Open in Web Editor NEW
48.0 2.0 12.0 280 KB

Chattle is a laravel package for customer support chat widget, with admin panel for chatting with customers

License: MIT License

PHP 27.76% JavaScript 45.48% Blade 26.76%
chat-widget customer-support laravel-chat laravel-chat-widget laravel-pusher laravel-realtime-chat laravel-message laravel-talk chat-laravel chatting

chattle's Introduction

An implementation of a Customer Support Chat System in Laravel.

This project will continue to grow and will be maintained. Your support is highly appreciated and will motivate the author to improve the package. If you've found this library helpful and want to support the author, please, consider any donation by clicking the button below or following the link to buymeacoffee.com.

Buy Me A Coffee

Table of Contents

  1. Features
  2. Requirements
  3. Installation
  4. What's next?
  5. License

Features ๐Ÿคฉ

  • Customer support chatbox in every single page of your web app
  • Admin panel for chatting with customers (available at: http://your-domain/chattle/chat-admin)
  • Self-hosted pusher replacement by beyondcode laravel websockets

Requirements

  • Laravel 10
  • PHP 8.1 or higher

Installation

Default installation is via Composer.

composer require ilmedova/chattle --with-all-dependencies

The service provider will automatically get registered. Or you could add the Service Provider manually to your config/app file in the providers section.

'providers' => [
    //...
    Ilmedova\Chattle\ChatServiceProvider::class,
]

Publish the assets for css and js files

php artisan vendor:publish --provider="Ilmedova\Chattle\ChatServiceProvider"

Configure the following in your .env

BROADCAST_DRIVER=pusher

PUSHER_APP_ID=qwerty12345

PUSHER_APP_KEY=qwerty12345

PUSHER_APP_SECRET=qwerty12345

PUSHER_HOST=127.0.0.1

PUSHER_PORT=6001

PUSHER_SCHEME=http

PUSHER_APP_CLUSTER=mt1

If you want to change the pusher app key and secret make sure that you change them not only in .env file, but also in /public/js/chattle_customer.js and /public/js/chattle_admin.js - where the pusher instance is created

Run the migrations in order to setup the required tables on the database.

php artisan migrate

Include the customer support chatbox on your layout blade file's body section

@include('chattle::chat')

Now serve your websockets and laravel app in different command lines

php artisan websockets:serve
php artisan serve

Admin dashboard for chatting with customers available at http://your-domain/chattle/chat-admin

What's next ๐Ÿš€

  • Realtime typing effect in chatboxes for users to let know that user or admin is typing
  • Marking messages as read when they are read by user or admin
  • Middleware and chat-admin roles control
  • Multiple color themes configured in configs

License

Laravel Customer Support Chat - is open-sourced software licensed under the MIT license.

chattle's People

Contributors

aishahzbr avatar bregananta avatar ilmedova avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

chattle's Issues

Package installation

Hi, @ilmedova @aishahzbr
This package is not working on laravel 10. I tried a lot. Every time i got the error that it requires laravel 9.

Problem 1
- Root composer.json requires ilmedova/chattle ^1.0 -> satisfiable by ilmedova/chattle[v1.0.0].
- ilmedova/chattle v1.0.0 requires laravel/framework ^9.0 -> found laravel/framework[v9.0.0, ..., v9.52.16] but it conflicts with your root composer.json require (^10.10)
-
Can you please make it work with laravel 10. It will be good for many people.

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.