Validater Package
create an validator library for projects on PHP, easy to implement., (*1)
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., (*2)
Prerequisites
For download with composer or git, you need:, (*3)
* Composer
* Git
* PHP
Installing
In your project folder run, once composer installed, (*4)
Composer:, (*5)
composer require aldorg/validater
GitHub:, (*6)
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:, (*7)
Validater::validateEmail("name@example.com");
Available methods:, (*8)
* 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:, (*9)
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., (*10)
Versioning
For the versions available, see the tags on this repository., (*11)
Authors
-
Aldo Ruiz - Initial work - AldoRG
See also the list of contributors who participated in this project., (*12)