{"id":22820119,"url":"https://github.com/photogabble/php-confusable-homoglyphs","last_synced_at":"2025-10-26T20:06:08.171Z","repository":{"id":29333355,"uuid":"121257589","full_name":"photogabble/php-confusable-homoglyphs","owner":"photogabble","description":"A PHP port of vhf/confusable_homoglyphs","archived":false,"fork":false,"pushed_at":"2022-02-17T22:09:37.000Z","size":689,"stargazers_count":32,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-15T18:05:51.569Z","etag":null,"topics":["confusable","homoglyphs","library","php","php7","string","unicode","unicode-characters","unicode-public-data"],"latest_commit_sha":null,"homepage":"https://photogabble.co.uk/projects/confusable-homoglyphs/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/photogabble.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-12T14:36:57.000Z","updated_at":"2022-04-09T13:57:07.000Z","dependencies_parsed_at":"2022-08-07T14:16:10.738Z","dependency_job_id":null,"html_url":"https://github.com/photogabble/php-confusable-homoglyphs","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/photogabble%2Fphp-confusable-homoglyphs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/photogabble%2Fphp-confusable-homoglyphs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/photogabble%2Fphp-confusable-homoglyphs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/photogabble%2Fphp-confusable-homoglyphs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/photogabble","download_url":"https://codeload.github.com/photogabble/php-confusable-homoglyphs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250344932,"owners_count":21415217,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["confusable","homoglyphs","library","php","php7","string","unicode","unicode-characters","unicode-public-data"],"created_at":"2024-12-12T15:16:29.380Z","updated_at":"2025-10-26T20:06:08.166Z","avatar_url":"https://github.com/photogabble.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eConfusable Homoglyphs\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\u003cem\u003eA PHP port of \u003ca href=\"https://github.com/vhf/confusable_homoglyphs\"\u003evhf/confusable_homoglyphs\u003c/a\u003e\u003c/em\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/photogabble/php-confusable-homoglyphs/actions/workflows/phpunit.yml\"\u003e\u003cimg src=\"https://github.com/photogabble/php-confusable-homoglyphs/actions/workflows/phpunit.yml/badge.svg\" alt=\"Build Status\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://packagist.org/packages/photogabble/php-confusable-homoglyphs\"\u003e\u003cimg src=\"https://img.shields.io/packagist/v/photogabble/php-confusable-homoglyphs.svg\" alt=\"Latest Stable Version\"\u003e\u003c/a\u003e\n  \u003ca href=\"LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/photogabble/php-confusable-homoglyphs.svg\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## About this package\n\n\u003e 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](http://www.amp-what.com/unicode/search/%CE%91))\n\nThis is a complete port of the Python library [vhf/confusable_homoglyphs](https://github.com/vhf/confusable_homoglyphs) to PHP. I found myself needing its functionality after reading [this article](https://www.b-list.org/weblog/2018/feb/11/usernames/) by James Bennett on validating usernames and how [django-registration](https://github.com/ubernostrum/django-registration/blob/1d7d0f01a24b916977016c1d66823a5e4a33f2a0/registration/validators.py) does so.\n\nA huge thank you goes to the Python package creator [Victor Felder](https://github.com/vhf) and its contributors [Ryan Kilby](https://github.com/rpkilby) and [muusik](https://github.com/muusik); without their work this port would not exist.\n\nThis library is compatible with PHP versions 7.3 and above.\n\n## Install\n\nInstall this library with composer: `composer require photogabble/php-confusable-homoglyphs`.\n\n## Usage\n\nPlease see the [tests](https://github.com/photogabble/php-confusable-homoglyphs/tree/master/tests) for detailed example of usage.\n\n#### Known Usage\n\n* [Laravel Registration Validator package ](https://github.com/photogabble/laravel-registration-validator)\n* If you use this package in your open source project please create a pull request to add a link here\n\n## Is the data up to date?\n\nThis project currently ships with unicode consortium public data version 16.0.0.\n\nThe unicode blocks aliases and names for each character are extracted from [this file](http://www.unicode.org/Public/UNIDATA/Scripts.txt) provided by the unicode consortium.\n\nThe matrix of which character can be confused with which other characters is built using [this file](http://www.unicode.org/Public/security/latest/confusables.txt) provided by the unicode consortium.\n\nThe version this project currently ships with was generated on the 1st May 2025.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphotogabble%2Fphp-confusable-homoglyphs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphotogabble%2Fphp-confusable-homoglyphs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphotogabble%2Fphp-confusable-homoglyphs/lists"}