PHP code example of austinheap / php-security-txt

1. Go to this page and download the library: Download austinheap/php-security-txt 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/ */

    

austinheap / php-security-txt example snippets




$writer = new \AustinHeap\Security\Txt\Writer;

print $writer->setContact('[email protected]')
             ->setEncryption('http://some.url/pgp.key')
             ->setDisclosure('full')
             ->setAcknowledgement('http://some.url/acks')
             ->getText();
bash
$ composer 
json
{
    "ustinheap/php-security-txt": "0.3.*"
    }
}