PHP code example of koderhut / securitytxt

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

    

koderhut / securitytxt example snippets


$contact = new Contact(new Email('[email protected]'), new Phone('1234567890'));
$contact->addCommentLine(new Comment('For security issues please contact us using one of the methods below'));

$document = new SecurityTxt(new NewLine());
$document->addDirective($contact);

echo $document->__toString();