Download the PHP package bluemantis/private-messaging without Composer

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

Craft Private Messaging

A Craft 3 CMS plugin. Grant your site users the power of communication, via private messaging!

screenshot

User Guide

1. Send a private message

Add the following form to your template:

You will need to set the following form values:

2. View messages

To view the logged in users messages, you will need to add the following to your template:

Within this loop you can access the following private message attributes:

3. View unread message count

To view the unread message count for the currently logged in user, you will need to add the following to your template:

4. View total message count

To view the total message count for the currently logged in user, you will need to add the following to your template:

5. View a message

To access an individual message, you will need to pass the id of a message to your template.

This can be achieved by setting up a new route that passes the message id (number) to your template, like so:

screenshot

Inside the template, we will use this ID (number) to retrieve the message, but, first we check to ensure we have actually been passed an ID:

If we have an ID, then we pass this to the getPrivateMessage method (which is a twig extension built into the plugin):

If this method does not return an associated message, it will return null. We may wish to handle that also:

The getPrivateMessage method with return a null value when:

  1. Out of range - A message with that ID doesn't exist in the database
  2. Deleted - A message with that ID has been deleted from the database
  3. Permissions - A message with that ID does not belong to the user trying to access it

6. View threads

To view the logged in users threads, you will need to add the following to your template:

Within this loop you can access the following message thread attributes:

Inside the template, we will use this ID (number) to retrieve the message, but, first we check to ensure we have actually been passed an ID:

If we have an ID, then we pass this to the getPrivateMessageThread method (which is a twig extension built into the plugin):

The getPrivateMessageThread method with return a null value when:

  1. Out of range - A thread with that ID doesn't exist in the database
  2. Deleted - A thread with that ID has been deleted from the database
  3. Permissions - A thread with that ID does not belong to the user trying to access it

Threads are only visible to the parties involved in the conversation

7. Reply to a message

Add the following form to your template:

You will need to set the following form values:

8. Delete a message

Add the following form to your template:

You will need to set the following form values:

NB: A user can only delete messages that belong to them.

More plugins by Blue Mantis

... can be found here


All versions of private-messaging with dependencies

PHP Build Version
Package Version
Requires craftcms/cms Version ^3.0.0-RC1
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 bluemantis/private-messaging contains the following files

Loading the files please wait ...