emanueleminotto/naughty-validator
Composer 安装命令:
composer require emanueleminotto/naughty-validator
包简介
Symfony validator for naughty strings
README 文档
README
Symfony validator for unsafe strings, based on minimaxir/big-list-of-naughty-strings.
Install
Via Composer
$ composer require emanueleminotto/naughty-validator
Usage
use EmanueleMinotto\NaughtyValidator\NotNaughty; $constraint = new NotNaughty(); $constraint->message = 'This value is not safe.'; // use the validator to validate the value $errorList = $this ->get('validator') ->validate('<>?:"{}|_+', $constraint); $errorMessage = $errorList[0]->getMessage();
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CONDUCT for details.
Security
If you discover any security related issues, please email minottoemanuele@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 208
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-12-24