Skip to content
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis
src
tests
.gitignore
.travis.yml
CHANGELOG.md
CONTRIBUTORS.md
LICENSE
README.md
composer.json
phpunit.xml

README.md

Confusable Homoglyphs

A PHP port of vhf/confusable_homoglyphs

Build Status Latest Stable Version License

About this package

Unicode homoglyphs can be a nuisance on the web. Your most popular client, AlaskaJazz, might be upset to be impersonated by a trickster who deliberately chose the username ΑlaskaJazz. (The A is the greek letter capital alpha)

This is a complete port of the Python library vhf/confusable_homoglyphs to PHP. I found myself needing its functionality after reading this article by James Bennett on validating usernames and how django-registration does so.

A huge thank you goes to the Python package creator Victor Felder and its contributors Ryan Kilby and muusik; without their work this port would not exist.

This library is compatible with PHP versions 7.0 and above.

Install

Install this library with composer: composer require photogabble/php-confusable-homoglyphs.

Usage

Please see the tests for detailed example of usage.

Known Usage

You can’t perform that action at this time.