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 1mo ago

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 32% of packages

Maintenance43

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

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

447d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dc539cc80c5da4ac930b77ea76a70ae317d3706536a4d87721b9bda51a4f293f?d=identicon)[kshyam1795](/maintainers/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

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

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

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

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