PHP code example of vision / yii2-private-messages

1. Go to this page and download the library: Download vision/yii2-private-messages library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

vision / yii2-private-messages example snippets


php composer.phar 

     public function actions()
     {
         return [
             'private-messages' => [
                 'class' => \vision\messages\actions\MessageApiAction::className()
             ]
         ];
     }
  

<?= vision\messages\widgets\CloadMessage::widget() 

<?= vision\messages\widgets\PrivateMessageKushalpandyaWidget::widget()