prezine/human-validator

There is no license information available for the latest version (1.0) of this package.

A smart PHP validator for real human data

Maintainers

Package info

github.com/prezine/php-human-validator

pkg:composer/prezine/human-validator

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0 2025-07-25 14:38 UTC

This package is auto-updated.

Last update: 2026-03-26 07:42:14 UTC


README

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