PHPackages                             javaabu/laravel-dhivehi-translate - 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. javaabu/laravel-dhivehi-translate

ActiveLibrary

javaabu/laravel-dhivehi-translate
=================================

Tr

v0.4.0(3y ago)4531MITPHPPHP ^7.2 || ^8.0

Since Jun 7Pushed 3y ago2 watchersCompare

[ Source](https://github.com/Javaabu/laravel-dhivehi-translate)[ Packagist](https://packagist.org/packages/javaabu/laravel-dhivehi-translate)[ Docs](https://github.com/Javaabu/laravel-dhivehi-translate)[ RSS](/packages/javaabu-laravel-dhivehi-translate/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (5)Used By (0)

Laravel Dhivehi Translate
=========================

[](#laravel-dhivehi-translate)

[![Latest Version on Packagist](https://camo.githubusercontent.com/9b69e00aba7cfd40ca1fe5c8c38ab4a1095faca67881a1373be70dadd928a35b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a6176616162752f6c61726176656c2d646869766568692d7472616e736c6174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/javaabu/laravel-dhivehi-translate)[![Build Status](https://camo.githubusercontent.com/a96cfff4fd15c8c87a9349b85fa2a1882cc2b13c4796c35827d3fa37234a371f/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6a6176616162752f6c61726176656c2d646869766568692d7472616e736c6174652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/javaabu/laravel-dhivehi-translate)[![Quality Score](https://camo.githubusercontent.com/14f6498b3e088e5a6f4584dd4bcb1268217884371be71879640f600dc027a8d4/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6a6176616162752f6c61726176656c2d646869766568692d7472616e736c6174652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/javaabu/laravel-dhivehi-translate)[![Total Downloads](https://camo.githubusercontent.com/975e1e9aef518a29a7542e4286d9ed093fb6e75d7ce454e1ebb2ba3b4666ff6e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a6176616162752f6c61726176656c2d646869766568692d7472616e736c6174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/javaabu/laravel-dhivehi-translate)

Translates Laravel language files to Dhivehi

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

[](#installation)

You can install the package via composer:

```
composer require javaabu/laravel-dhivehi-translate
```

**Laravel 5.5** and above uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.

After updating composer, add the ServiceProvider to the providers array in config/app.php

```
Javaabu\LaravelDhivehiTranslate\LaravelDhivehiTranslateServiceProvider::class,
```

### Publish config files

[](#publish-config-files)

This package essentially creates a Microsoft Translator driver for [tanmuhittin/laravel-google-translate](https://github.com/tanmuhittin/laravel-google-translate) package using the [InputOutputZ/ATran](https://github.com/InputOutputZ/ATran) package. So this package will publish modified versions of config files from those packages named `atran.php` and `laravel_google_translate.php`.

```
php artisan vendor:publish --force --provider="Javaabu\LaravelDhivehiTranslate\LaravelDhivehiTranslateServiceProvider"
```

### Add Microsoft Azure Translation API Key to .env

[](#add-microsoft-azure-translation-api-key-to-env)

```
AZURETRAN_KEY=xxxxxxxxxxxxxx
```

Follow this [link](https://docs.microsoft.com/en-us/learn/modules/control-authentication-with-apim/1-introduction) to get API key.

### Usage

[](#usage)

Then you can run

```
php artisan translate:files
```

See it on action:

[![laravel-google-translate](https://camo.githubusercontent.com/982b85254798c3f8bb4ecbff178fe3383323e66202d82b40716ffd5296b3e6f6/687474703a2f2f6d7568697474696e74616e2e636f6d2f74616e6d7568697474696e2d6c61726176656c2d676f6f676c652d7472616e736c6174652e676966)](https://camo.githubusercontent.com/982b85254798c3f8bb4ecbff178fe3383323e66202d82b40716ffd5296b3e6f6/687474703a2f2f6d7568697474696e74616e2e636f6d2f74616e6d7568697474696e2d6c61726176656c2d676f6f676c652d7472616e736c6174652e676966)

Str facade api-translation helpers
----------------------------------

[](#str-facade-api-translation-helpers)

This package provides two translation methods for Laravel helper Str

- `Illuminate\Support\Str::apiTranslate` -&gt; Translates texts using your selected api in config
- `Illuminate\Support\Str::apiTranslateWithAttributes` -&gt; Again translates texts using your selected api in config in addition to that this function ***respects Laravel translation text attributes*** like :name

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Javaabu Pvt. Ltd.](https://github.com/javaabu)
- [Mohamed Jailam](http://github.com/muhammedjailam)
- [Arushad Ahmed (@dash8x)](http://arushad.org)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90% 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 ~1 days

Total

4

Last Release

1437d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6671720?v=4)[Arushad Ahmed](/maintainers/dash8x)[@dash8x](https://github.com/dash8x)

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

---

Top Contributors

[![dash8x](https://avatars.githubusercontent.com/u/6671720?v=4)](https://github.com/dash8x "dash8x (9 commits)")[![muhammedjailam](https://avatars.githubusercontent.com/u/9347984?v=4)](https://github.com/muhammedjailam "muhammedjailam (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/javaabu-laravel-dhivehi-translate/health.svg)

```
[![Health](https://phpackages.com/badges/javaabu-laravel-dhivehi-translate/health.svg)](https://phpackages.com/packages/javaabu-laravel-dhivehi-translate)
```

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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