PHP code example of yellowsink / tls_icon_ys

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

    

yellowsink / tls_icon_ys example snippets




$config['tls_icon'] = [
    'header_pattern' => 'by your.mail.server',
    'check_pattern' => 'using TLSv1\.[23]',
    'local_pattern' => '(local-hostname|127.0.0.1)',
    'tooltip_pattern' =>  '(using TLSv1.[23] [A-Z0-9-_ ]*)\)',
];

$config['tls_icon'] = [
    'header_pattern' => '(by <your.mail.server>|from \[127\.0\.0\.1\])',
    'check_pattern' => '\(using TLSv?(1\.[2-3])',
    'local_pattern' => '(mailcowdockerized-dovecot-mailcow-1|127.0.0.1)',
    'tooltip_pattern' =>  '\(using\s(.*?)\s',

];