Download the PHP package tpojka/confer without Composer

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

Prologue

Package uses abandoned https://github.com/dazzz1er/confer as base point.

Confer

Add a real-time chat system to your Laravel website/application in a few lines of code.

Demo

The demo is currently unavailable as the project is being upgraded.

Requirements

The project currently requires Pusher (php-server and javascript) to allow real-time chat messaging. Service is recommended if you need to do real-time messaging - it's fast, reliable and very easy to implement in your projects.

You can create a free sandbox account at pusher.com which lets you have 1,000,000 messages a day (or 200,000 depending on your plan) and 100 concurrent connections for free. If you need higher limits they offer paid accounts at pretty decent prices.

Other requirements:

Installation

Require the package via composer: composer require tpojka/confer

Publish the assets: php artisan vendor:publish

Add the service provider Tpojka\Confer\ConferServiceProvider::class to your bootstrap/providers.php if needed (standard for Laravel 11+) or config/app.php (for older versions).

Add the seed to your database seed caller (typically database/seeds/DatabaseSeeder.php or database/seeders/DatabaseSeeder.php):

Migrate your database with the seeds in tow: php artisan migrate --seed

Add the trait to your User model:

Link to the css file, and import the view partials in whichever pages you wish to have the chat on, or put it in your app/master file (if you are using one) to show on all pages.

Note: The JS partial must be wrapped in an @auth check since it requires a logged-in user.

Configuration

There are a number of options in the confer.php config file which are quite self explanatory, but in short you can:

The avatar, loader and company avatar are all relative to your app's /public dir.

Your Pusher app details are not configured in the config file provided, they are instead expected to be provided in your config/broadcasting.php file (standard Laravel broadcasting configuration).

Upgrade to Laravel 12.0

Version 12.0 of the package supports Laravel 12.0 and above.

Upgrade to Laravel 11.0

Version 11.0 of the package supports Laravel 11.0 and above.

Upgrade to Laravel 10.0

Version 10.0 of the package supports Laravel 10.0 and above.

Upgrade to Laravel 9.0

Version 9.0 of the package supports Laravel 9.0 and above.

Upgrade to Laravel 8.0

Version 8.0 of the package supports Laravel 8.0 and above.

Assumptions of the package

The package assumes you have a User model in the App namespace, and that this model has a name attribute (hey, if you don't have one already, why not create one with a custom getter?) and an avatar attribute - which is simply the filename of the avatar image file (for example avatar-dan.jpg) which will be appended to your avatar_dir provided in the config file of the package to find your avatar.

Optionals

There is an optional facebook messages type bar, which you can include in your project if you'd like that functionality.

Simply put the following inside a suitable containing element (like a dropdown li):

If you are using bootstrap this is what I have my bar view inside:

Potential updates

Likely updates include adding mentions, sounds and changing conversation names after the initial setup.

What would you like to see?

Closing

If you use this package in your project it would mean the absolute world to me if you let me know! This is my first package, and my first piece of code shared so really... it's close to me. That said please feel free to contribute to the project - I think it has a solid foundation for expansion.


All versions of confer with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
illuminate/support Version ^12.0
pusher/pusher-php-server Version ^7.2
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 tpojka/confer contains the following files

Loading the files please wait ...