PHP code example of nanson / yii2-messenger
1. Go to this page and download the library: Download nanson/yii2-messenger 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/ */
nanson / yii2-messenger example snippets
echo \nanson\messenger\widgets\Contacts::widget();
echo \nanson\messenger\widgets\Messages::widget([
'contactId' => $contactId,
]);
echo \nanson\messenger\widgets\AddMessage::widget([
'contactId' => $contactId,
'pjaxId' => "pjaxMessages",
]);
echo \nanson\messenger\widgets\Counter::widget();