masterkey/shield

PHP应用的系统安全包

1.1.0 2016-03-02 01:56 UTC

This package is auto-updated.

Last update: 2024-08-29 02:04:46 UTC


README

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

此包旨在提高PHP应用程序的安全性。提供API进行字符串消毒,以确保其安全使用。

以后还将向包中添加其他功能。

要将包添加到您的项目中

$ composer require masterkey/shield

将composer的autoload添加到您的项目中

require_once "vendor/autoload.php"

现在您可以按照以下方式清理您的字符串

echo Masterkey\Shield\Sql::clear('Minha Stringwhere1=1')

您将得到以下输出:我的字符串