Download the PHP package songyue/yii2-message without Composer

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

Yii2-message

System for users to send each other private messages.

Prerequisites:

You need a Model with the 'id' and 'username' attributes. This needs to be an ActiveRecord or Model instance.

I suggest to use https://github.com/dektrium/yii2-user which works wonderful with this module.

Installation

Configuration

Add following lines to your main configuration file:

Sending E-Mails

If you want the system to automatically send E-Mails via Yii::$app->mailer you only need to provide an 'email' column in your ActiveRecord Model.

Use the $mailMessages module option to define which users are getting E-Mails. For Example:

You can overwrite the default e-mail views and layout by providing an @app/mail/ directory inside your Application.

Mailqueue

From version 0.4 and above you can use yii2-queue (https://github.com/yiisoft/yii2-queue) to send messages via a mail queue. Once you have yii2-queue configured in your application you can set

to let yii2-message push an EmailJob on to your queue instead of sending the E-Mail directly.

If you want to use an mailqueue like https://github.com/nterms/yii2-mailqueue you can override the 'mailer' configuration option in the module configuration. Since yii2-queue is stable and an official extension i personally prefer to use yii2-queue instead of 3rd party extensions.

Ignore List and Recipients Filter

The user can manage his own ignore list using the message/message/ignorelist route. You can place a callback that defines which users should be able to be messaged. For example, if you do not want your users to be able to write to admin users, do this:

The recipients filter is applied after the ignore list.

Actions

The following Actions are possible:

You can place this code snippet in your layouts/main.php to give your users access to the message actions:

Since 0.3.0 you can render the compose view inside an Modal Widget like this:

For some common url rules, you can copy Module::$urlRules into your 'rules' section of the URL Manager.

Contributing to this project

Anyone and everyone is welcome to contribute.

License

Yii2-message is released under the GPLv3 License.


All versions of yii2-message with dependencies

PHP Build Version
Package Version
Requires yiisoft/yii2 Version ^2.0.0
yiisoft/yii2-swiftmailer Version ^2.0.0
yiisoft/yii2-bootstrap Version ^2.0.0
kartik-v/yii2-widget-select2 Version ^2.0
rmrevin/yii2-fontawesome Version ~2.17
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 songyue/yii2-message contains the following files

Loading the files please wait ....