waleedahmedwaheed/unique-validator

A PHP library for unique validation rules such as palindrome, isogram, and anagram checks.

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/waleedahmedwaheed/unique-validator

dev-master 2024-08-02 07:10 UTC

This package is auto-updated.

Last update: 2025-12-30 09:57:03 UTC


README

A PHP library for unique validation rules such as palindrome, isogram, and anagram checks.

Installation

You can install the package via Composer:

composer require waleedahmedwaheed/unique-validator

Usage

Palindrome Check

use UniqueValidator\Validator;

if (Validator::isPalindrome('A man, a plan, a canal, Panama')) {
    echo 'This is a palindrome.';
} else {
    echo 'This is not a palindrome.';
}

Isogram Check

if (Validator::isIsogram('Dermatoglyphics')) {
    echo 'This is an isogram.';
} else {
    echo 'This is not an isogram.';
}

Anagram Check

if (Validator::isAnagram('listen', 'silent')) {
    echo 'These are anagrams.';
} else {
    echo 'These are not anagrams.';
}

License

This project is licensed under the MIT License. See the LICENSE file for details