All Projects β†’ shalvah β†’ Pusher Chatkit Laravel

shalvah / Pusher Chatkit Laravel

Laravel wrapper for the Chatkit PHP SDK. ChatKit is shutting down πŸ˜• - https://blog.pusher.com/narrowing-our-product-focus

Projects that are alternatives of or similar to Pusher Chatkit Laravel

Chatify
A Laravel package that allows you to add a complete user messaging system into your new/existing Laravel application.
Stars: ✭ 885 (+4114.29%)
Mutual labels:  laravel, chat, pusher
Mercurius
Real-time Messenger for Laravel
Stars: ✭ 309 (+1371.43%)
Mutual labels:  laravel, chat, pusher
Laravel 5 Messenger
A Simple Laravel 5, 6, 7 & 8 Messenger with Pusher Capabilities
Stars: ✭ 75 (+257.14%)
Mutual labels:  laravel, chat, pusher
Dashboard.spatie.be
The source code of dashboard.spatie.be
Stars: ✭ 1,916 (+9023.81%)
Mutual labels:  laravel, pusher
Chat Demo
Demo Application for https://github.com/musonza/chat/
Stars: ✭ 67 (+219.05%)
Mutual labels:  laravel, chat
Trello Clone Vue Laravel
This is a Trello clone built using Laravel and Vue. You can read about how it was created in the series.
Stars: ✭ 88 (+319.05%)
Mutual labels:  laravel, pusher
React Slack Clone
Complete chat application, built with Chatkit | by @lukejacksonn
Stars: ✭ 1,306 (+6119.05%)
Mutual labels:  chat, pusher
Laravel Feedback Component
Customizable Feedback Component for Laravel
Stars: ✭ 216 (+928.57%)
Mutual labels:  laravel, chat
Laravel Realtime Example
Realtime πŸ• Pizza Order Tracker πŸ• - Laravel, Vue & Pusher
Stars: ✭ 165 (+685.71%)
Mutual labels:  laravel, pusher
Laravel Websockets Demo
Demo application to use with the Laravel WebSockets package.
Stars: ✭ 286 (+1261.9%)
Mutual labels:  laravel, pusher
Laravel Websockets
Websockets for Laravel. Done right.
Stars: ✭ 4,157 (+19695.24%)
Mutual labels:  laravel, pusher
Pusher Http Laravel
[DEPRECATED] A Pusher Channels bridge for Laravel
Stars: ✭ 410 (+1852.38%)
Mutual labels:  laravel, pusher
Lynnhosting
Open Source, Web Hosting Automation built with Laravel
Stars: ✭ 36 (+71.43%)
Mutual labels:  laravel, pusher
Addchat Laravel
AddChat Laravel is a Laravel chat package. Live chat widget for Laravel that also includes multi-user chat, group permissions, customer support chat & more.
Stars: ✭ 99 (+371.43%)
Mutual labels:  laravel, chat
Gateway
πŸš€ζž„ε»Ίεˆ†εΈƒεΌε³ζ—ΆθŠε€©γ€ζΆˆζ―ζŽ¨ι€η³»η»Ÿγ€‚ Building distributed instant messaging, push notification systems.
Stars: ✭ 188 (+795.24%)
Mutual labels:  chat, pusher
Webhook.site
βš“οΈ Easily test HTTP webhooks with this handy tool that displays requests instantly.
Stars: ✭ 2,842 (+13433.33%)
Mutual labels:  laravel, pusher
Laravel Video Chat
Laravel Video Chat using Socket.IO and WebRTC
Stars: ✭ 646 (+2976.19%)
Mutual labels:  laravel, chat
Laravel Vue Boilerplate
🐘 A Laravel 6 SPA boilerplate with a users CRUD using Vue.js 2.6, GraphQL, Bootstrap 4, TypeScript, Sass, and Pug.
Stars: ✭ 472 (+2147.62%)
Mutual labels:  laravel, pusher
Chat
A Laravel chat package. You can use this package to create a chat/messaging Laravel application.
Stars: ✭ 710 (+3280.95%)
Mutual labels:  laravel, chat
Vat Calculator
Handle all the hard stuff related to EU MOSS tax/vat regulations, the way it should be. Integrates with Laravel and Cashier β€” or in a standalone PHP application.
Stars: ✭ 876 (+4071.43%)
Mutual labels:  laravel

Laravel-Chatkit

ChatKit is shutting down - https://blog.pusher.com/narrowing-our-product-focus

Pusher

Laravel wrapper for Pusher Chatkit. Find out more about Chatkit here.

Build Status Latest Stable Version Total Downloads Latest Version

Note: This package requires Laravel 5.5 or above

Installation

composer require shalvah/pusher-chatkit-laravel

The package will automatically make use of the latest stable version of the Chatkit PHP library (currently 1.1.0).

Quick start

Publish the config file by running:

php artisan vendor:publish --provider="Chatkit\Laravel\ChatkitServiceProvider"

This will create a config/chatkit.php file in your app that you can modify to match your configuration. Retrieve your Chatkit app details from your Chatkit app dashboard and add them in your .env file like so:

CHATKIT_INSTANCE_LOCATOR=your-instance-locator
CHATKIT_KEY=your-key

That's it. You can use Chatkit via the facade in your app:

<?php
use Chatkit\Laravel\Facades\Chatkit;


public function startChatting()
{
    Chatkit::createUser(['id' => 'hc', 'name' => 'Hamilton Chapman']);
    Chatkit::createRoom(['creator_id' => 'hc', 'name' => 'Cat Lovers']);
    Chatkit::sendMessage(['sender_id' => 'hc', 'room_id' => 'r001', 'text' => 'Hi, everyone!' ]);
}

Alternatively, you may inject the ChatkitManager into your methods:

<?php
use Chatkit\Laravel\ChatkitManager;

public function startChatting(ChatkitManager $chatkitManager)
{
    $chatkitManager->createUser(['id' => 'hc', 'name' => 'Hamilton Chapman']);
    $chatkitManager->createRoom(['creator_id' => 'hc', 'name' => 'Cat Lovers']);
    $chatkitManager->sendMessage([
        'sender_id' => 'hc', 
        'room_id' => 'r001', 
        'text' => 'Hi, everyone!'
    ]);
}

Configuration

The config/chatkit.php file allows you to configure your Chatkit usage (for instance, to use multiple connections).

Working with Multiple Connections

Supposing you have to work with multiple chat apps from the same server. You can do this easily by publishing the config file as explained above, then configuring your various connections in it as needed. You can then switch connections as needed using either the facade or Manager class:

<?php

// use whatever connection is default -- by default, this is 'main'
Chatkit::createRoom(['creator_id' =>'admin', 'name' => 'Just Chat']);

// use the 'main' connection
Chatkit::connection('main')->createRoom(['creator_id' =>'admin', 'name' => 'Just Chat']);

// use the 'test' connection
Chatkit::connection('test')->createRoom('admin', ['name' => 'Just Chat']);

// use the 'secondary' connection
Chatkit::setDefaultConnection('secondary');
Chatkit::createRoom(['creator_id' =>'admin', 'name' => 'Just Chat']);

Documentation

A complete listing of available methods is available at the Chatkit PHP SDK docs.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].