Download the PHP package ismailelbery/arabic-name-translit without Composer

On this page you can find all versions of the php package ismailelbery/arabic-name-translit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package arabic-name-translit

Arabic Name Transliterator

Packagist Version Tests Total Downloads PHP Version

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

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

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

Usage

Quick

Fluent

Standards

Standard Output Use 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)

Style محمد أمير
default Mohammed Amir
gulf Mohammad Ameer
egyptian Mohamed Amir

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

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

License

MIT


All versions of arabic-name-translit with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-mbstring Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ismailelbery/arabic-name-translit contains the following files

Loading the files please wait ...