PHP code example of gouyuwang / imessage-php

1. Go to this page and download the library: Download gouyuwang/imessage-php 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/ */

    

gouyuwang / imessage-php example snippets


return [
    'host'        => env('IMESSAGE_NODE_HOST', 'http://127.0.0.1:3003'), // IMessage-Server host
    'master'      => env('IMESSAGE_MASTER_CHANNEL', 'master'), // channel
    'credentials' => [ // auth
        'key' => env('IMESSAGE_MASTER_KEY', 'masterkey'),
        '_id' => env('IMESSAGE_CLIENT_ID', 'somerandomid'),
    ],
];
Shell
composer 
shell
php artisan vendor:publish --provider="Gouyuwang\IMessage\ServiceProvider" --tag=imessage