PHPackages                             royalcms/laravel-security - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. royalcms/laravel-security

ActivePackage[Security](/categories/security)

royalcms/laravel-security
=========================

Laravel-Security helps you secure your Laravel apps by setting various HTTP headers. it can help!

v1.0.1(6y ago)03511MITPHP

Since May 6Pushed 6y agoCompare

[ Source](https://github.com/royalcms/laravel-security)[ Packagist](https://packagist.org/packages/royalcms/laravel-security)[ RSS](/packages/royalcms-laravel-security/feed)WikiDiscussions master Synced today

READMEChangelog (2)DependenciesVersions (3)Used By (1)

Why Laravel-Security
--------------------

[](#why-laravel-security)

Laravel-Security helps you secure your Laravel apps by setting various HTTP headers. it can help!

Quick start
-----------

[](#quick-start)

First, You can install the package via composer:

 ```
 composer require royalcms/laravel-security
```

Documentation
-------------

[](#documentation)

For installation instructions, in-depth usage and deployment details, please take a look at the official [documentation](https://getspooky.github.io/Laravel-Mitnick/).

Requirements
------------

[](#requirements)

Laravel-Security has a few requirements you should be aware of before installing :

- Composer
- Laravel Framework 5.4+

Solved : Security vulnerability
-------------------------------

[](#solved--security-vulnerability)

VulnerabilityMiddleware ClassIncludedCache Control AttackRoyalcms\\Laravel\\Security\\Cache::class✔Cross-Origin Resource Sharing (CORS)Royalcms\\Laravel\\Security\\CORS::class✔X-Permitted-Cross-Domain-PoliciesRoyalcms\\Laravel\\Security\\CrossDomain::class✔DNS Prefetch Control Royalcms\\Laravel\\Security\\DNS::class✔Click Jacking AttackRoyalcms\\Laravel\\Security\\FrameGuard::class✔Strict-Transport-Security Royalcms\\Laravel\\Security\\HSTS::class✔Mime Sniffing AttackRoyalcms\\Laravel\\Security\\NoSniff::class✔X-Powered-By AttackRoyalcms\\Laravel\\Security\\XPoweredBy::class✔ XSS Attack Royalcms\\Laravel\\Security\\XSS::class✔License
-------

[](#license)

The Laravel-Security package is open-source software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 63.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

2248d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1106638?v=4)[Hao.Dongfang](/maintainers/royalwang)[@royalwang](https://github.com/royalwang)

---

Top Contributors

[![getspooky](https://avatars.githubusercontent.com/u/37160072?v=4)](https://github.com/getspooky "getspooky (7 commits)")[![DevPow](https://avatars.githubusercontent.com/u/29777212?v=4)](https://github.com/DevPow "DevPow (2 commits)")[![zgrguric](https://avatars.githubusercontent.com/u/108837406?v=4)](https://github.com/zgrguric "zgrguric (2 commits)")

---

Tags

laravelsecuritycorsdnsxssno-cacheattackvulnerabilityclickjackingx-powered-bynoSniff

### Embed Badge

![Health badge](/badges/royalcms-laravel-security/health.svg)

```
[![Health](https://phpackages.com/badges/royalcms-laravel-security/health.svg)](https://phpackages.com/packages/royalcms-laravel-security)
```

###  Alternatives

[mitnick/laravel-security

laravel-mitnick helps you secure your Laravel apps by setting various HTTP headers. it can help!

8111.8k1](/packages/mitnick-laravel-security)[akaunting/laravel-firewall

Web Application Firewall (WAF) package for Laravel

1.0k508.9k2](/packages/akaunting-laravel-firewall)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
