Download the PHP package shalvah/pusher-chatkit-laravel without Composer
On this page you can find all versions of the php package shalvah/pusher-chatkit-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package pusher-chatkit-laravel
Laravel-Chatkit
ChatKit is shutting down - https://blog.pusher.com/narrowing-our-product-focus
Laravel wrapper for Pusher Chatkit. Find out more about Chatkit here.
Note: This package requires Laravel 5.5 or above
Installation
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:
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:
That's it. You can use Chatkit via the facade in your app:
Alternatively, you may inject the ChatkitManager
into your methods:
`
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:
Documentation
A complete listing of available methods is available at the Chatkit PHP SDK docs.
License
MIT
All versions of pusher-chatkit-laravel with dependencies
illuminate/contracts Version ^5.5 || ^6.0 || ^7.0
illuminate/support Version ^5.5 || ^6.0 || ^7.0
graham-campbell/manager Version ^3.0 || ^4.0
pusher/pusher-chatkit-server Version ^1.0.0