PHPackages                             pavlo-dot-dev/homoglyph-attack-generator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. pavlo-dot-dev/homoglyph-attack-generator

ActiveLibrary

pavlo-dot-dev/homoglyph-attack-generator
========================================

Homoglyph Attack Generator

v1.0.1(3y ago)111MITPHP

Since Aug 11Pushed 3y ago1 watchersCompare

[ Source](https://github.com/pavlo-dot-dev/HomoglyphAttackGenerator)[ Packagist](https://packagist.org/packages/pavlo-dot-dev/homoglyph-attack-generator)[ RSS](/packages/pavlo-dot-dev-homoglyph-attack-generator/feed)WikiDiscussions main Synced 4w ago

READMEChangelogDependenciesVersions (3)Used By (0)

PHP Homoglyph Attack Generator
==============================

[](#php-homoglyph-attack-generator)

This app is meant to make it easier to generate homographs based on Homoglyphs than having to search for look-a-like character in Unicode, then coping and pasting. Please use only for legitimate pen-test purposes and user awareness training. I also recommend webapp developers use it to test out possible user impersonation attacks in their code. This is still a work in progress, so please send me suggestions (especially for new Homoglyphs to add). While this tool was designed with making IDNA/Punycode names for putting into DNS to display foreign characters in a browsers URL bar, it can be used for other things. Try ignoring the IDNA/Punycode stuff and just making look alike user names for systems that accept Unicode. I made this tool to easily generate homographs based on homoglyphs in Unicode and to test out how different apps display them. It seems like a lot of modern browsers have gotten better at warning the users of attack, but I'd love to hear experiences about other apps that accept Unicode/Punycode/Internationalized Domain Names, especially webapps.

Based on:

Requirements
------------

[](#requirements)

PHP 7.4 and leter

Modules: mbstring, iconv, intl

Composer
--------

[](#composer)

You can install the bindings via [Composer](http://getcomposer.org/). Run the following command:

```
composer require pavlo-dot-dev/homoglyph-attack-generator
```

Dependencies
------------

[](#dependencies)

The bindings require the following extensions in order to work properly:

- [`mbstring`](https://secure.php.net/manual/en/book.mbstring.php) (Multibyte String)
- [`iconv`](https://www.php.net/manual/en/book.iconv.php)
- [`intl`](https://www.php.net/manual/en/intro.intl.php) (Internationalization extension)

If you use Composer, these dependencies should be handled automatically. If you install manually, you'll want to make sure that these extensions are available.

Getting Started
---------------

[](#getting-started)

Simple usage looks like:

```
$generator = new \PavloDotDev\HomoglyphAttackGenerator\Generator();
$results = $generator->generate('cocacola', true);
print_r($results);
```

```
$generator = new \PavloDotDev\HomoglyphAttackGenerator\Generator();
$results = $generator->generate('cocacola', false);
print_r($results);
```

###  Health Score

22

—

LowBetter than 23% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1367d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/59402e5c1d1791d4ab3c6c67a50cadd5a0d6449591948b382e7bacf1f4102c05?d=identicon)[pavlo-dev](/maintainers/pavlo-dev)

### Embed Badge

![Health badge](/badges/pavlo-dot-dev-homoglyph-attack-generator/health.svg)

```
[![Health](https://phpackages.com/badges/pavlo-dot-dev-homoglyph-attack-generator/health.svg)](https://phpackages.com/packages/pavlo-dot-dev-homoglyph-attack-generator)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
