PHP code example of auoyi / laravel-synology-chat

1. Go to this page and download the library: Download auoyi/laravel-synology-chat 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/ */

    

auoyi / laravel-synology-chat example snippets


    'providers' => [
        // ...
        Auoyi\Synology\SynologyChatServiceProvider::class,
    ]

    'aliases' => [
        // ...
        'SynologyChat' => Auoyi\Synology\Facades\SynologyChat::class,
    ]

return [
    'SYNOLOGY_CHAT_WEBHOOK_URL' => env('SYNOLOGY_CHAT_WEBHOOK_URL', ''),
    // ...
];


    use Auoyi\Synology\Facades\SynologyChat;
    $result = SynologyChat::pushMessage('Hello Synology', [1]);
    pr($result);