aldorg/validater
Composer 安装命令:
composer create-project aldorg/validater
包简介
Boilerplate package for creating other packages.
README 文档
README
create an validator library for projects on PHP, easy to implement.
Getting Started
This is a simple library to validate types of data, including numbers, emails, etc. You can copy this package from composer or via github.
Prerequisites
For download with composer or git, you need:
* Composer
* Git
* PHP
Installing
In your project folder run, once composer installed
Composer:
composer require aldorg/validater
GitHub:
https://github.com/AldoRG/validater.git
Code Examples
All methods needs the data type to validate and is going to return a boolean result, you can validate different types of data using the methods below:
Validater::validateEmail("name@example.com");
Available methods:
* validateBoolean
* validateEmail
* validateInteger
* validateArray
* validateNumeric
* validateString
* validateUrl
* validateAlpha
* validateAlphaNum
* validateDate
Running the tests
You can test this repository creating a new class in the Test folder, and using PHPUnit. Run your test cases using:
vendor/bin/phpunit
Built With
- PHP - PHP language
- Git - Version Control System
- PHPUnit - Programmer-oriented testing framework for PHP
Contributing
Everyone can contributing to the library, ask me for the process for submitting pull requests to us.
Versioning
For the versions available, see the tags on this repository.
Authors
- Aldo Ruiz - Initial work - AldoRG
See also the list of contributors who participated in this project.
统计信息
- 总下载量: 27
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2017-04-12