PHPackages                             ismailelbery/arabic-name-translit - 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. ismailelbery/arabic-name-translit

ActiveLibrary

ismailelbery/arabic-name-translit
=================================

Name-aware transliteration of Arabic personal names into Latin script — transliterates, never translates.

v1.0.0(today)10MITPHPPHP ^8.1CI passing

Since Jun 18Pushed todayCompare

[ Source](https://github.com/IsmailElbery/arabic-name-translit)[ Packagist](https://packagist.org/packages/ismailelbery/arabic-name-translit)[ RSS](/packages/ismailelbery-arabic-name-translit/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (2)Used By (0)

Arabic Name Transliterator
==========================

[](#arabic-name-transliterator)

[![Packagist Version](https://camo.githubusercontent.com/69d6a164b3a564c127153a9f3d08e3efa3f86c33feba4bd4ff5a97b4fa47f177/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f69736d61696c656c626572792f6172616269632d6e616d652d7472616e736c69742e737667)](https://packagist.org/packages/ismailelbery/arabic-name-translit)[![Tests](https://camo.githubusercontent.com/0431f3ba575a74465f28023130bbdaef6fe2c87d7e0ceeae3f5a43a6534d98a9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f49736d61696c456c626572792f6172616269632d6e616d652d7472616e736c69742f74657374732e796d6c3f6272616e63683d6d6173746572266c6162656c3d7465737473)](https://github.com/IsmailElbery/arabic-name-translit/actions/workflows/tests.yml)[![Total Downloads](https://camo.githubusercontent.com/e3d915d9d88715c1480425b659c32bea66e1a121745921076808075ab843abb3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f69736d61696c656c626572792f6172616269632d6e616d652d7472616e736c69742e737667)](https://packagist.org/packages/ismailelbery/arabic-name-translit)[![PHP Version](https://camo.githubusercontent.com/a5ec7260d43c99facbf51110d01f85b7117850f2b96912e8faa8d3af5ff88a6b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f69736d61696c656c626572792f6172616269632d6e616d652d7472616e736c69742e737667)](https://packagist.org/packages/ismailelbery/arabic-name-translit)[![License](https://camo.githubusercontent.com/bb2ceeafe770aecedc69fed9c78408e3d68a6e3573ca03666ce8e84152a71652/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f69736d61696c656c626572792f6172616269632d6e616d652d7472616e736c69742e737667)](LICENSE)

Transliterate Arabic personal names into Latin script — **the right way**.

```
Transliterator::name('أمير');   // "Amir"   (not "prince")
Transliterator::name('أميرة');  // "Amira"  (not "princess")
```

Why this exists
---------------

[](#why-this-exists)

Generic engines *translate* names instead of *transliterating* them. Ask Google to render `أمير` and you get **"prince"**; `أميرة` becomes **"princess"** — because those words also *mean* prince and princess. Same trap with `جميل` ("beautiful"), `نور` ("light"), `سعيد` ("happy").

A name is a phonetic token, never a semantic one. This package treats it that way and **never consults a translation source**. Known names are mapped directly from a curated dictionary; unknown names fall back to a phonetic rule engine.

Installation
------------

[](#installation)

```
composer require ismailelbery/arabic-name-translit
```

Requires PHP 8.1+. Laravel users get auto-discovery (service provider + facade) out of the box.

Usage
-----

[](#usage)

### Quick

[](#quick)

```
use Ismail\NameTranslit\Transliterator;

Transliterator::name('أمير');                         // "Amir"
Transliterator::name('أميرة');                        // "Amira"
Transliterator::name('فاطمة');                        // "Fatima"
Transliterator::name('محمد', style: 'gulf');          // "Mohammad"
Transliterator::name('محمد', style: 'egyptian');      // "Mohamed"
Transliterator::name('عبد الرحمن', standard: 'icao');  // "ABDULRAHMAN"
```

### Fluent

[](#fluent)

```
Transliterator::make()
    ->standard('common')   // common | icao | din31635 | ala_lc
    ->style('gulf')        // regional spelling convention
    ->name('أميرة');
```

Standards
---------

[](#standards)

StandardOutputUse case`common``Amir`Human-readable; respects regional `style`.`icao``AMIR`Doc 9303 / MRZ — passports, manifests.`din31635`*(v1.1)*Academic, diacritic-based.`ala_lc`*(v1.1)*Library cataloguing standard.The `icao` standard is deterministic: uppercase output, `AL` article handling, no trailing taa-marbuta vowel, and compound names joined per Doc 9303. This is the path for compliance-driven systems (government records, Hajj/Umrah manifests, travel documents).

Styles (common standard only)
-----------------------------

[](#styles-common-standard-only)

Style`محمد``أمير`defaultMohammedAmir`gulf`MohammadAmeer`egyptian`MohamedAmirHow it resolves
---------------

[](#how-it-resolves)

Each name is normalized (hamza/tashkeel/tatweel stripped), then resolved in order:

1. **Dictionary** — exact lookup of known names. The primary path; this is what prevents the prince/princess bug.
2. **Compound** — splits on particles (`عبد`, `أبو`, `ابن`, `بنت`, `آل`) and the definite article `ال`, then re-resolves each part.
3. **Rule engine** — phonetic fallback for genuinely unknown names.

Handles taa marbuta endings (`ة` → `a`), initial hamza, long vowels (`ي`/`و`), and the definite article per the active standard.

Contributing
------------

[](#contributing)

The dictionary is the heart of the package — the more curated names it holds, the better it performs. Additions to `data/names.male.php` and `data/names.female.php` (with regional alternates) are the most valuable contribution you can make. Keys must be stored **normalized** (no hamza on alif, no tashkeel).

Roadmap
-------

[](#roadmap)

- **v1.0** — Common + ICAO standards, dictionary + rule engine, Laravel integration.
- **v1.1** — DIN 31635 and ALA-LC standards, expanded regional styles.
- **Experimental** — reverse transliteration (Latin → Arabic). Stubbed, not yet implemented.

License
-------

[](#license)

MIT

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance100

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Unknown

Total

1

Last Release

0d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/43496512?v=4)[IsmailElbery](/maintainers/IsmailElbery)[@IsmailElbery](https://github.com/IsmailElbery)

---

Top Contributors

[![IsmailElbery](https://avatars.githubusercontent.com/u/43496512?v=4)](https://github.com/IsmailElbery "IsmailElbery (4 commits)")

---

Tags

laraveltransliterationarabicnamesphoneticICAOdoc9303

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/ismailelbery-arabic-name-translit/health.svg)

```
[![Health](https://phpackages.com/badges/ismailelbery-arabic-name-translit/health.svg)](https://phpackages.com/packages/ismailelbery-arabic-name-translit)
```

###  Alternatives

[yemenifree/laravel-arabic-numbers-middleware

auto transforms arabic/eastern to eastern/arabic numbers for i.e ١٢٣٤٥٦٧٨ to 12345678

18135.6k](/packages/yemenifree-laravel-arabic-numbers-middleware)[still-code/ar-php-laravel

ar-php-laravel

397.5k](/packages/still-code-ar-php-laravel)[watson/nameable

Format names of users into full, familiar and abbreviated forms

2911.1k](/packages/watson-nameable)[maherelgamil/arabicdatetime

Easy and useful tool to generate arabic or hijri date with multi-language support for laravel

414.6k](/packages/maherelgamil-arabicdatetime)

PHPackages © 2026

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