PHP code example of kosmoskosmos / synochat
1. Go to this page and download the library: Download kosmoskosmos/synochat 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/ */
kosmoskosmos / synochat example snippets
'synochat' => [
'driver' => 'custom',
'url' => env( "SYNOCHAT_LOG_URL","example.ip.or.domain.name"),
'token' => env("SYNOCHAT_LOG_TOKEN", "%22yourkey%22"),
'level' => \Monolog\Logger::DEBUG,
'via' => SynologyChatLogger::class
],
use Illuminate\Support\Facades\Log;
Log::channel("synochat")->info("This will be sent to synology chat.");