PHP code example of voilaf / message-system

1. Go to this page and download the library: Download voilaf/message-system 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/ */

    

voilaf / message-system example snippets


    // string $subject 发布事件名
    // string $data 发布信息
    // string $desc 事件描述
    app('message-client')->pub($subject, $data, $desc);