PHPackages                             yamsafer/name-translation - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. yamsafer/name-translation

ActiveLibrary[Localization &amp; i18n](/categories/localization)

yamsafer/name-translation
=========================

package to translate names with one of the two ways 1.Rosette 2.Google Translate

v1.0.2(8y ago)510.8kPHPPHP &gt;=5.6.4

Since Aug 21Pushed 8y ago23 watchersCompare

[ Source](https://github.com/Yamsafer/name-translation)[ Packagist](https://packagist.org/packages/yamsafer/name-translation)[ RSS](/packages/yamsafer-name-translation/feed)WikiDiscussions master Synced today

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

name-translation
================

[](#name-translation)

Transliterate the names in your content, don’t translate.

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

[](#getting-started)

This package is constructed to allow users to translate names from a source language to a target language with two possible connections (Rosette ,Google Translate).

After downloading the package, you need to set your API KEYs for the previously mentioned connections in the configuration file (config/name-translation.php).

Also, you need to assign them in the test file (tests/NameTranslation/TranslatioTest) if you want to run the used tests in the package.

By default,the translation will be held with the Rosette Connection from English to Arabic.

You can use the main method translate($name, $source, $target), which take three parameters as $name =&gt; The given name that you want to translate (must be given) $source =&gt; The source language (optional \_default = arabic); $target =&gt; The source language (optional \_default = english).

### Prerequisites

[](#prerequisites)

The requirements for this package are:

```
    php: ">=5.6.4",
    illuminate/support: "~5.0"

```

Also for the tests,you need to have the following in the require-dev:

```
    "phpunit/phpunit": "5.0.*"

```

Also, the test configuration includes the code coverage which can be enabled if you have Xdebug in your system. Xdebug can be installed via brew install:

brew install &lt; php-version &gt;-xdebug

eg.

brew install php56-xdebug

### Installing

[](#installing)

Install the package via composer:

```
     composer require yamsafer/name-translation

```

Register the ServiceProvider in config/app.php

```
    'providers' => [
	// [...]
            NameTranslation\TranslationServiceProvider::class,
    ],

```

You may also register the NameTranslation Facade:

```
    'aliases' => [
	// [...]
            'NameTranslation' => NameTranslation\Facades\NameTranslationFacade::class,
    ],

```

Within your laravel project, when you execute Laravel's vendor:publish command, the configuration will be published.

Run Tests
---------

[](#run-tests)

You can run the tests using the following command under the previously mentioned specifications:

```
  vendor/bin/phpunit tests/NameTranslation/TranslationTest.php

```

Within your project you must assign the right directory as:

```
  vendor/bin/phpunit yamsafer/name-translation/tests/NameTranslation/TranslationTest.php

```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 92.9% 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

Every ~0 days

Total

3

Last Release

3234d ago

### Community

Maintainers

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

---

Top Contributors

[![walasleem](https://avatars.githubusercontent.com/u/20107912?v=4)](https://github.com/walasleem "walasleem (13 commits)")[![sameh88](https://avatars.githubusercontent.com/u/1401777?v=4)](https://github.com/sameh88 "sameh88 (1 commits)")

---

Tags

google-translaterosettetranslation

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yamsafer-name-translation/health.svg)

```
[![Health](https://phpackages.com/badges/yamsafer-name-translation/health.svg)](https://phpackages.com/packages/yamsafer-name-translation)
```

###  Alternatives

[illuminate/translation

The Illuminate Translation package.

6937.4M556](/packages/illuminate-translation)[erag/laravel-lang-sync-inertia

A powerful Laravel package for syncing and managing language translations across backend and Inertia.js (Vue/React) frontends, offering effortless localization, auto-sync features, and smooth multi-language support for modern Laravel applications.

4821.5k](/packages/erag-laravel-lang-sync-inertia)

PHPackages © 2026

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