PHP code example of flatrate / flarum-messaging-ui

1. Go to this page and download the library: Download flatrate/flarum-messaging-ui 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/ */

    

flatrate / flarum-messaging-ui example snippets

bash
composer ache:clear
js
app.flatRateMessagingSources ??= {};
app.flatRateMessagingSources.live = { /* listConversations, getUnreadTotal, renderConversation */ };
app.flatRateMessagingSources.direct = { /* listConversations, getUnreadTotal, renderConversation, findConversationWithUser, startConversationWithUser */ };