Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 997 Bytes

File metadata and controls

28 lines (18 loc) · 997 Bytes

PHP Human Validator

A lightweight, modular PHP SDK that validates human-related input like names, emails, passwords, usernames, and phone numbers — with intelligent logic beyond basic regex. Perfect for user signup, forms, and fraud prevention.

🚀 Features

  • Name Validation
    Detects whether a name looks human-like (not random gibberish), with optional dictionary support.

  • 📧 Email Validation
    Validates format, checks DNS MX records, and detects disposable or temporary email providers.

  • 🔐 Password Validation
    Enforces strong password rules and checks if passwords contain the user's name or email.

  • 📱 Phone Number Validation
    Validates international phone numbers using Google's libphonenumber for PHP.

  • 👤 Username Validation
    Enforces character limits, filters profanity, and restricts reserved usernames.

🧪 Installation

Require the package via Composer:

composer require prezine/php-human-validator