nickyeoman/php-validation-class

Validate, email, postal code, zipcode and phone numbers

5.0.3 2024-06-04 05:20 UTC

This package is auto-updated.

Last update: 2024-09-12 23:29:22 UTC


README

A simple yet effective validation class written in PHP.

Introduction

Originally created on October 31, 2009, using CodeIgniter, this class has been revived to meet the needs of numerous projects.

Full Documentation

Github: https://github.com/nickyeoman/php-validation-class

Packagist

Composer: https://packagist.org/packages/nickyeoman/php-validation-class

composer require nickyeoman/php-validation-class

Usage

Include the class in your project.

USE Nickyeoman\Validation;
$validate = new Nickyeoman\Validation\Validate();

And use:

$validate = new Validate;
$validate->isEmail($email);
$validate->isPhone($phone);
$validate->isPostalCode($postal);
$validate->isZipCode($zip);