PHP code example of bepsvpt / laravel-security-header
1. Go to this page and download the library: Download bepsvpt/laravel-security-header 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/ */
bepsvpt / laravel-security-header example snippets
// instantiate the class by fromFile static method
$secureHeaders = SecureHeaders::fromFile('/path/to/secure-headers.php');
// or instantiate the class directly
$config =
// Get headers
$secureHeaders->headers();
// Send headers to HTTP response
$secureHeaders->send();
sh
php artisan vendor:publish --provider="Bepsvpt\SecureHeaders\SecureHeadersServiceProvider"
sh
mkdir config
cp vendor/bepsvpt/secure-headers/config/secure-headers.php config/secure-headers.php
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.