romannowicki/assure
最新稳定版本:2.0.1
Composer 安装命令:
composer require romannowicki/assure
包简介
Data correction and validation
README 文档
README
Data correction and validation tools
Installation
via Composer:
"require": {
"romannowicki/assure": "2.0.1"
}
Usage example
// if value is not integer and cannot be transform to integer assure with throw exception // correct values: '1', 1, 1.3 // invalid values: 'a', NULL, false, array() assure($value, 'integer'); // if not integer OR string with integers separated by commas assure will throw exception // correct values: '1', '1,2,3,4,5'; // invalid values: 'a', '1,2,a,4,b'; assure($value, ['integer', 'commaSeparatedIntegers']);
统计信息
- 总下载量: 531
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2014-11-01