PHPackages                             panlatent/element-messages - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. panlatent/element-messages

ActiveCraft-plugin

panlatent/element-messages
==========================

Element Messages for CraftCMS

0.1.1(6y ago)36921[1 issues](https://github.com/panlatent/element-messages/issues)MITPHPCI failing

Since Apr 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/panlatent/element-messages)[ Packagist](https://packagist.org/packages/panlatent/element-messages)[ RSS](/packages/panlatent-element-messages/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Element Messages
================

[](#element-messages)

[![Build Status](https://camo.githubusercontent.com/becbe286394dc74bbb2044bb0d054371af8ad82f2a6c2d0da84c648449f4038d/68747470733a2f2f7472617669732d63692e6f72672f70616e6c6174656e742f656c656d656e742d6d657373616765732e737667)](https://travis-ci.org/panlatent/element-messages)[![Coverage Status](https://camo.githubusercontent.com/d7fe6c159268898782749f8d1bb1caee2860eb23eb972124e2a8bb592e72da90/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f70616e6c6174656e742f656c656d656e742d6d657373616765732f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/panlatent/element-messages?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/7d541cb486dfb138c172272d2c2f72e00bd2e560649aefe6d4352b593c8d50ca/68747470733a2f2f706f7365722e707567782e6f72672f70616e6c6174656e742f656c656d656e742d6d657373616765732f762f737461626c652e737667)](https://packagist.org/packages/panlatent/element-messages)[![Total Downloads](https://camo.githubusercontent.com/f9d3725d1e1b2e2243218ac36341e20c6f608df381938bcf47027e950a3cffb0/68747470733a2f2f706f7365722e707567782e6f72672f70616e6c6174656e742f656c656d656e742d6d657373616765732f646f776e6c6f6164732e737667)](https://packagist.org/packages/panlatent/element-messages)[![Latest Unstable Version](https://camo.githubusercontent.com/ec96aad497efb15487f90398defbeb35a95dd975440c16a70623a2f796fbcbfd/68747470733a2f2f706f7365722e707567782e6f72672f70616e6c6174656e742f656c656d656e742d6d657373616765732f762f756e737461626c652e737667)](https://packagist.org/packages/panlatent/element-messages)[![License](https://camo.githubusercontent.com/9885cdfed16df24a735617271d520a96d82ce453f30363f1e3b4abcdce30e5a7/68747470733a2f2f706f7365722e707567782e6f72672f70616e6c6174656e742f656c656d656e742d6d657373616765732f6c6963656e73652e737667)](https://packagist.org/packages/panlatent/element-messages)[![Craft CMS](https://camo.githubusercontent.com/3b3a6af116655b8038aae3059f4eff62c90e95ba2bbc45973943f45ac601426b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506f77657265645f62792d43726166745f434d532d6f72616e67652e7376673f7374796c653d666c6174)](https://craftcms.com/)[![Yii2](https://camo.githubusercontent.com/d6b0929173e28cc627430d2519ca1853466a70f37395877eaf4820cb3e1e1909/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506f77657265645f62792d5969695f4672616d65776f726b2d677265656e2e7376673f7374796c653d666c6174)](https://www.yiiframework.com/)

Element messages help your Craft application create messages between two elements and use any one element as the message content. It makes it easy to build relationships between three elements and provides a powerful way to query.We can customize the types of rich and flexible messages by sender element type, target element type and content element type. This relationship is stored in another database table, which helps reduce the data size of the Craft element relationship table. This should be a better solution for sending the same content multiple times (e.g. group sending).

Requirements
------------

[](#requirements)

This plugin requires Craft CMS 3.1 or later.

Installation
------------

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require panlatent/element-messages

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Element Messages.

Usages
------

[](#usages)

### Create a message

[](#create-a-message)

```
