PHPackages                             zeratulus/php-sql-injection-filter - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. zeratulus/php-sql-injection-filter

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

zeratulus/php-sql-injection-filter
==================================

Simple SQL injection detection tool

210PHP

Since Mar 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/zeratulus/php-sql-injection-filter)[ Packagist](https://packagist.org/packages/zeratulus/php-sql-injection-filter)[ RSS](/packages/zeratulus-php-sql-injection-filter/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

php-sql-injection-filter
========================

[](#php-sql-injection-filter)

### Currently under development

[](#currently-under-development)

[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://vshymanskyy.github.io/StandWithUkraine/)

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

[](#installation)

> composer require zeratulus/php-sql-injection-filter

Usage example:

```
$result = (new Ninja\DB\SqlInjection())->init()->check($myStringToCheck);
```

Or more default OOP way:

```
$filter = new Ninja\DB\SqlInjection();
$filter->init();
$result = $filter->check($myStringToCheck);
```

Some comments:

> Also you can use after call check(); method results of isSqlInjection();

> To clean results of check use clearIssues();

> Good example of usage is here: /tests/index.php

This solution was implemented to detect possible SQL injection at user input.

In search of solution for this purpose I google some info... but there were nothing for PHP.

Big thanks to Stuart Millar for Java implementation. Basic code were taken from here:

Implemented with ChatGPT and Gemini.

With best regards Serhii Herenko

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity21

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13305812?v=4)[Serhii](/maintainers/zeratulus)[@zeratulus](https://github.com/zeratulus)

---

Top Contributors

[![zeratulus](https://avatars.githubusercontent.com/u/13305812?v=4)](https://github.com/zeratulus "zeratulus (19 commits)")

### Embed Badge

![Health badge](/badges/zeratulus-php-sql-injection-filter/health.svg)

```
[![Health](https://phpackages.com/badges/zeratulus-php-sql-injection-filter/health.svg)](https://phpackages.com/packages/zeratulus-php-sql-injection-filter)
```

###  Alternatives

[marcosh/php-validation-dsl

A DSL for validating data in a functional fashion

483.9k](/packages/marcosh-php-validation-dsl)

PHPackages © 2026

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