2017 © Pedro Peláez
 

library secure-headers

Add security related headers to HTTP response. The package includes Service Providers for easy Laravel integration.

image

bepsvpt/secure-headers

Add security related headers to HTTP response. The package includes Service Providers for easy Laravel integration.

  • Saturday, June 9, 2018
  • by BePsvPT
  • Repository
  • 12 Watchers
  • 172 Stars
  • 69,272 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 20 Forks
  • 1 Open issues
  • 30 Versions
  • 23 % Grown

The README.md

Secure Headers

Financial Contributors on Open Collective Actions Status Latest Stable Version Total Downloads License, (*1)

Add security related headers to HTTP response. The package includes Service Providers for easy Laravel integration., (*2)

Version

8.0.0, (*3)

Supported Laravel Version

5.1 ~ 11.x, (*4)

Installation

Non Laravel Project

Install using composer, (*5)

composer require bepsvpt/secure-headers

Copy config file to your project directory, (*6)

cp vendor/bepsvpt/secure-headers/config/secure-headers.php path/to/your/project/directory

Set up config file, (*7)

Done!, (*8)

Laravel Project

Install using composer, (*9)

composer require bepsvpt/secure-headers

Add service provider in config/app.php ( laravel version < 5.5 ), (*10)

Bepsvpt\SecureHeaders\SecureHeadersServiceProvider::class,

Publish config file, (*11)

php artisan vendor:publish --provider="Bepsvpt\SecureHeaders\SecureHeadersServiceProvider"

Add global middleware in app/Http/Kernel.php, (*12)

\Bepsvpt\SecureHeaders\SecureHeadersMiddleware::class,

Set up config file config/secure-headers.php, (*13)

Done!, (*14)

Lumen Project

Install using composer, (*15)

composer require bepsvpt/secure-headers

Add service provider in bootstrap/app.php, (*16)

$app->register(Bepsvpt\SecureHeaders\SecureHeadersServiceProvider::class);

Copy config file to project directory, (*17)

mkdir config
cp vendor/bepsvpt/secure-headers/config/secure-headers.php config/secure-headers.php

Add global middleware in bootstrap/app.php, (*18)

$app->middleware([
   \Bepsvpt\SecureHeaders\SecureHeadersMiddleware::class,
]);

Set up config file config/secure-headers.php, (*19)

Done!, (*20)

Usage(Non Laravel Project)

Do not forget to import namespace., (*21)

<?php

use \Bepsvpt\SecureHeaders\SecureHeaders;

Instance

<?php

// instantiate the class by fromFile static method
$secureHeaders = SecureHeaders::fromFile('/path/to/secure-headers.php');

// or instantiate the class directly
$config = require '/path/to/secure-headers.php';

$config['key'] = 'value'; // modify config value if needed

$secureHeaders = new SecureHeaders($config);

Send

// Get headers
$secureHeaders->headers();

// Send headers to HTTP response
$secureHeaders->send();

Document and Notice

Please see DOCS for details., (*22)

Changelog

Please see CHANGELOG for details., (*23)

Upgrade

Please see UPGRADE for details., (*24)

License

Secure Headers is licensed under The MIT License (MIT)., (*25)

The Versions

09/06 2018

dev-master

9999999-dev https://github.com/BePsvPT/secure-headers

Add security related headers to HTTP response. The package includes Service Providers for easy Laravel integration.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar BePsvPT

laravel https csp hsts header hpkp

09/06 2018

5.2.0

5.2.0.0 https://github.com/BePsvPT/secure-headers

Add security related headers to HTTP response. The package includes Service Providers for easy Laravel integration.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar BePsvPT

laravel https csp hsts header hpkp

07/05 2018

5.1.0

5.1.0.0 https://github.com/BePsvPT/secure-headers

Add security related headers to HTTP response. The package includes Service Providers for easy Laravel integration.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar BePsvPT

laravel https csp hsts header hpkp

09/04 2018

5.0.0

5.0.0.0 https://github.com/BePsvPT/secure-headers

Add security related headers to HTTP response. The package includes Service Providers for easy Laravel integration.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar BePsvPT

laravel https csp hsts header hpkp

11/03 2018

4.2.0

4.2.0.0 https://github.com/BePsvPT/secure-headers

Add security related headers to HTTP response. The package includes Service Providers for easy Laravel integration.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar BePsvPT

laravel https csp hsts header hpkp

01/09 2017

4.1.0

4.1.0.0 https://github.com/BePsvPT/secure-headers

Add security related headers to HTTP response. The package includes Service Providers for easy Laravel integration.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar BePsvPT

laravel https csp hsts header hpkp

04/08 2017

4.0.0

4.0.0.0 https://github.com/BePsvPT/secure-headers

Add security related headers to HTTP response. The package includes Service Providers for easy Laravel integration.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar BePsvPT

laravel https csp hsts header hpkp

18/07 2017

3.1.0

3.1.0.0 https://github.com/BePsvPT/secure-headers

Add security related headers to HTTP response. The package includes Service Providers for easy Laravel integration.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar BePsvPT

laravel https csp hsts header hpkp

16/05 2017

3.0.7

3.0.7.0 https://github.com/BePsvPT/secure-headers

Add security related headers to HTTP response. The package includes Service Providers for easy Laravel integration.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar BePsvPT

laravel https csp hsts header hpkp

16/05 2017

dev-testing-5.1

dev-testing-5.1 https://github.com/BePsvPT/secure-headers

Add security related headers to HTTP response. The package includes Service Providers for easy Laravel integration.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar BePsvPT

laravel https csp hsts header hpkp

16/05 2017

dev-testing-5.2

dev-testing-5.2 https://github.com/BePsvPT/secure-headers

Add security related headers to HTTP response. The package includes Service Providers for easy Laravel integration.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar BePsvPT

laravel https csp hsts header hpkp

16/05 2017

dev-testing-5.3

dev-testing-5.3 https://github.com/BePsvPT/secure-headers

Add security related headers to HTTP response. The package includes Service Providers for easy Laravel integration.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar BePsvPT

laravel https csp hsts header hpkp

16/05 2017

dev-testing-5.4

dev-testing-5.4 https://github.com/BePsvPT/secure-headers

Add security related headers to HTTP response. The package includes Service Providers for easy Laravel integration.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar BePsvPT

laravel https csp hsts header hpkp

20/04 2017

3.0.6

3.0.6.0 https://github.com/BePsvPT/secure-headers

Add security related headers to HTTP response. The package includes Service Providers for easy Laravel integration.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar BePsvPT

laravel https csp hsts header hpkp

09/04 2017

3.0.5

3.0.5.0 https://github.com/BePsvPT/secure-headers

Add security related headers to HTTP response. The package includes Service Providers for easy Laravel integration.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar BePsvPT

laravel https csp hsts header hpkp

20/02 2017

3.0.4

3.0.4.0 https://github.com/BePsvPT/secure-headers

Add security related headers to HTTP response. The package includes Service Providers for easy Laravel integration.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar BePsvPT

laravel https csp hsts header hpkp

29/01 2017

3.0.3

3.0.3.0 https://github.com/BePsvPT/secure-headers

Add security related headers to HTTP response. The package includes Service Providers for easy Laravel integration.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar BePsvPT

laravel https csp hsts header hpkp

23/01 2017

3.0.2

3.0.2.0 https://github.com/BePsvPT/secure-headers

Add security related headers to HTTP response.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar BePsvPT

laravel https csp hsts header hpkp

19/01 2017

3.0.1

3.0.1.0 https://github.com/BePsvPT/secure-headers

Add security related headers to HTTP response.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar BePsvPT

laravel https csp hsts header hpkp

03/10 2016

2.2.0

2.2.0.0

Append secure headers to response for laravel framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar BePsvPT

laravel https csp hsts header hpkp

24/08 2016

2.1.1

2.1.1.0

Append security headers to response for laravel framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar BePsvPT

laravel https hsts header hpkp

24/08 2016

2.1.0

2.1.0.0

Append security headers to response for laravel framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar BePsvPT

laravel https hsts header hpkp

18/08 2016

2.0.0

2.0.0.0

Append security headers to response for laravel framework.

  Sources   Download

MIT

The Requires

 

by Avatar BePsvPT

laravel https hsts header hpkp

02/01 2016

1.1.2

1.1.2.0

Append security headers to response for laravel framework.

  Sources   Download

MIT

The Requires

 

by Avatar BePsvPT

laravel middleware https security hsts header hpkp

22/12 2015

1.1.1

1.1.1.0

Append security headers to response for laravel framework.

  Sources   Download

MIT

The Requires

 

by Avatar BePsvPT

laravel middleware security header

07/12 2015

1.1.0

1.1.0.0

Append security headers to response for laravel framework.

  Sources   Download

MIT

The Requires

 

by Avatar BePsvPT

laravel middleware security header

01/12 2015

1.0.2

1.0.2.0

Append security headers to response for laravel framework.

  Sources   Download

MIT

The Requires

 

by Avatar BePsvPT

laravel middleware security header

01/12 2015

1.0.1

1.0.1.0

Append security headers to response for laravel framework.

  Sources   Download

MIT

The Requires

 

by Avatar BePsvPT

laravel middleware security header

01/12 2015

1.0.0

1.0.0.0

Append security headers to response for laravel framework.

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

by Avatar BePsvPT

laravel middleware security header