rossey/big-list-of-naughty-strings
最新稳定版本:v1.0.1
Composer 安装命令:
composer require rossey/big-list-of-naughty-strings
包简介
Big List of Naughty Strings is a list of strings which have a high probability of causing issues when used as user-input data.
README 文档
README
This is my PHP wrapper around Max Woolf's Big List of Naughty Strings. Thanks Max!
Setup
The big list of naughty strings repository can be included as a git submodule that lives in resources.
Composer is configured to run ./bin/install.sh on post-install which will call git submodule update.
If you don't want to use the git submodule you can manually pass a file to the NaughtyStringsFactory constructor.
Examples
composer require rossey/big-list-of-naughty-strings
$factory = new \Rossey\Blns\NaughtyStringsFactory;
foreach($factory->getNaughtyStrings() as $naughtyString) {
echo $naughtyString;
}
Factory with manual file
$factory = new \Rossey\Blns\NaughtyStringsFactory(PATH_TO_FILE);
The factory will return an array of NaughtyString objects. The NaughtyString has a __toString method so you'll need to cast it to a string.
统计信息
- 总下载量: 43
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2015-09-07