aldorg / validater
Boilerplate package for creating other packages.
Installs: 27
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=5.4
Requires (Dev)
- phpunit/phpunit: 5.2.*
This package is not auto-updated.
Last update: 2025-07-06 05:22:56 UTC
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.