zeratulus/php-sql-injection-filter 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

zeratulus/php-sql-injection-filter

Composer 安装命令:

composer require zeratulus/php-sql-injection-filter

包简介

Simple SQL injection detection tool

README 文档

README

Currently under development

Stand With Ukraine

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: https://github.com/stu17682/sql-injection-filter

Implemented with ChatGPT and Gemini.

With best regards Serhii Herenko

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-02-20