erlandmuchasaj/sanitize
最新稳定版本:1.0.5
Composer 安装命令:
composer require erlandmuchasaj/sanitize
包简介
A package to sanitize your input.
README 文档
README
This is a PHP package that helps to sanitize your input when performing search queries to DB. It cleans the input from all malicious characters.
Installation
You can install the package via composer:
composer require erlandmuchasaj/sanitize
Usage
Sanitize library offers a sanitize method that takes a parameter a dirty string parameter and return a cleaned string.
use ErlandMuchasaj\Sanitize\Sanitize; $dirtyString = 'Hello - World'; $sanitizedString = Sanitize::sanitize($dirtyString); // do something with the sanitized text // you can: $words = explode(' ', $sanitizedString); // and search the DB per each word.
Support me
I invest a lot of time and resources into creating best in class open source packages.
If you found this package helpful you can show support by clicking on the following button below and donating some amount to help me work on these projects frequently.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please see SECURITY for details.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 5.6k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 14
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-02-22