PHP code example of yaknet / sentinel
1. Go to this page and download the library: Download yaknet/sentinel 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/ */
yaknet / sentinel example snippets
use YakNet\Sentinel\Core\Sentinel;
Sentinel::register([
'gemini_api_key' => $_ENV['GEMINI_API_KEY'],
'enable_shield' => true,
'notifications' => [
'telegram' => [
'token' => 'your_bot_token',
'chat_id' => 'your_chat_id'
]
]
]);