rossey/big-list-of-naughty-strings 问题修复 & 功能扩展

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

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

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
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-09-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固