Download the PHP package flatphp/sanitization without Composer
On this page you can find all versions of the php package flatphp/sanitization. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download flatphp/sanitization
More information about flatphp/sanitization
Files in flatphp/sanitization
Download flatphp/sanitization
More information about flatphp/sanitization
Files in flatphp/sanitization
Vendor flatphp
Package sanitization
Short Description light sanitizer
License MIT
Package sanitization
Short Description light sanitizer
License MIT
Keywords sanitizationsanitizer
Please rate this library. Is it a good library?
Informations about the package sanitization
sanitization
light sanitizer
Install
Usage
Custom your own validate method 加入定制自己的验证方法
- Use anonymous function like example
- Just extends sanitizer class and add your own method (继承)
- Or Just write global function (写全局函数)
Methods 已有的方法和规则
method | rule | note |
---|---|---|
trim | php function | |
ltrim | php function | |
rtrim | php function | |
toString($value, $delimiter = null) | string | |
toInt($value) | int | |
toArray($value, $delimiter = null) | array | |
toJson($value) | json | |
toFloat($value, $scale = 2) | float | |
toBool($value) | bool | |
toLower($value) | lower | |
toUpper($value) | upper | |
toStrip($value, $chars) | strip |
All versions of sanitization with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.5
The package flatphp/sanitization contains the following files
Loading the files please wait ....