PHP code example of kevin-kibet / laravel-mongooseim

1. Go to this page and download the library: Download kevin-kibet/laravel-mongooseim 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/ */

    

kevin-kibet / laravel-mongooseim example snippets



return [
    'api' => env('MONGOOSE_IM_API', 'http://conversations.im:8088/api'),
    'domain' => env('MONGOOSE_IM_DOMAIN', 'conversations.im'),
    'muc_domain' => env('MONGOOSE_IM_MUC_DOMAIN', 'muc.conversations.im'),
    'muc_light_domain' => env('MONGOOSE_IM_MUC_LIGHT_DOMAIN', 'muclight.conversations.im'),
    'debug' => env('MONGOOSE_IM_DEBUG', true)
];

'providers' => [
    // Other Service Providers

    MongooseIm\Providers\MongooseImServiceProvider::class
],

$app->configure('mongoose-im')

$app->register(MongooseIm\Providers\MongooseImServiceProvider::class);

$send_message = new SendMessage($to, $from, $body);
$response = MongooseImFacade::execute($send_message);
bash
$ php artisan vendor:publish --provider="MongooseIm\Providers\MongooseImServiceProvider"