PHPackages                             growats/ok-nic-owasp-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. growats/ok-nic-owasp-security

ActiveLibrary[Security](/categories/security)

growats/ok-nic-owasp-security
=============================

A Laravel package for OWASP security best practices

v1.0.0(1y ago)13MITPHP

Since Feb 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/kshyam1795/ok-nic-owasp-security)[ Packagist](https://packagist.org/packages/growats/ok-nic-owasp-security)[ RSS](/packages/growats-ok-nic-owasp-security/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel OWASP Security Package
==============================

[](#laravel-owasp-security-package)

Introduction
------------

[](#introduction)

`ok-nic-owasp-security` is a Laravel package that implements OWASP security best practices, including:

- Secure HTTP headers
- Cross-Site Scripting (XSS) protection
- SQL Injection mitigation
- Rate limiting
- Cross-Origin Resource Sharing (CORS) protection

Installation
------------

[](#installation)

Install the package using Composer:

```
composer require Growats/ok-nic-owasp-security

##Publish Configuration

php artisan vendor:publish --tag=owasp-security

This will create the configuration file at:

config/owasp-security.php

## Register Middleware
Add the middleware to app/Http/Kernel.php under $middleware:

protected $middleware = [
    \Growats\OkNicOwaspSecurity\Middleware\SecurityHeaders::class,
    \Growats\OkNicOwaspSecurity\Middleware\XssSanitization::class,
    \Growats\OkNicOwaspSecurity\Middleware\RateLimiting::class,
    \Growats\OkNicOwaspSecurity\Middleware\SqlInjectionProtection::class,
    \Growats\OkNicOwaspSecurity\Middleware\CorsProtection::class,
];

Middleware Explanation | Middleware	Description
SecurityHeaders	       | Adds security headers (CSP, HSTS, XSS Protection)
XssSanitization	       | Strips malicious scripts from input
RateLimiting	       | Limits excessive requests to prevent DoS attacks
SqlInjectionProtection | Blocks common SQL injection patterns
CorsProtection	       | Restricts cross-origin requests
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance41

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

499d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/38130537?v=4)[Shyamendra Kushwaha](/maintainers/kshyam1795)[@kshyam1795](https://github.com/kshyam1795)

---

Top Contributors

[![kshyam1795](https://avatars.githubusercontent.com/u/38130537?v=4)](https://github.com/kshyam1795 "kshyam1795 (2 commits)")

### Embed Badge

![Health badge](/badges/growats-ok-nic-owasp-security/health.svg)

```
[![Health](https://phpackages.com/badges/growats-ok-nic-owasp-security/health.svg)](https://phpackages.com/packages/growats-ok-nic-owasp-security)
```

###  Alternatives

[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k18.7M143](/packages/mews-purifier)[paragonie/ecc

PHP Elliptic Curve Cryptography library

24820.0k38](/packages/paragonie-ecc)[laravelgems/blade-escape

Custom blade directives to figth against XSS

1212.5k](/packages/laravelgems-blade-escape)

PHPackages © 2026

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