Download the PHP package dominservice/conversations without Composer

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

Latest Version Total Downloads

Conversations

This package will allow you to add a full user messaging system into your Laravel application.

Notice

This package is for Laravel

Version Compatibility
1.* 5.6 --> 9.*
2.* 8. --> 10.

IMPORTANT

This package is a continuation of the dominservice/laravel_chat package, due to significant structural changes I decided to create a separate repository. If you have a previous version, you can uninstall it while retaining the database contents, the new package includes a migration moving the data to the new structure. Remember to make a backup before performing this operation!

Installation

Or place manually in composer.json:

Run:

Add the service provider to config/app.php

Publish config:

Migrate

REMEMBER

Configure the package in the config/conversations.php file

Usage

Create New Conversation:

Or short with helper

if you get conversation object "Dominservice\Conversations\Entities\Conversation" with all relations and users, else method return onlu conversation ID

Add message to Conversation if exists or create:

Or short with helper

Add message to Conversation:

Or short with helper

Get Conversation ID between users:

Or short with helper

Check exists user in Conversation:

Or short with helper

On helper if userId is null, userId = \Auth::user()->id

Get count all unreaded messages:

Or short with helper

On helper if userId is null, userId = \Auth::user()->id

Get count unreaded messages in specific conversation:

Or short with helper

On helper if userId is null, userId = \Auth::user()->id

Delete Conversation:

This method tes status to DELETED for all messages in conversation for selected user. If all messages for all users has status DELETED remove permanently all values for conversation.

Or short with helper

On helper if userId is null, userId = \Auth::user()->id

Get all Conversations for specyfic user:

This will return you a "Illuminate\Support\Collection" of "Dominservice\Conversations\Entities\Conversation" objects. And foreach Conversation there, you will have the last message of the conversation, and the users of the conversation. Example:

Or short with helper

On helper if userId is null, userId = \Auth::user()->id, and helper set array with users adn conversations.

Get messages of conversation:

Or short with helper

On helper if userId is null, userId = \Auth::user()->id

Get unread messages of conversation:

Or short with helper

On helper if userId is null, userId = \Auth::user()->id

Set status for message:

Mark messages. If userId is null then set current user id.

Example

Credits

tzookb/tbmsg


All versions of conversations with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
laravel/framework Version ^9|^10
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 dominservice/conversations contains the following files

Loading the files please wait ....