PHPackages                             mohamedhabibwork/awt - 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. mohamedhabibwork/awt

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

mohamedhabibwork/awt
====================

Awesome Translation For Laravel

1(2y ago)040↓100%MITPHP

Since Jun 27Pushed 2y agoCompare

[ Source](https://github.com/mohamedhabibwork/AWT)[ Packagist](https://packagist.org/packages/mohamedhabibwork/awt)[ RSS](/packages/mohamedhabibwork-awt/feed)WikiDiscussions master Synced 1mo ago

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

AWT Translation
===============

[](#awt-translation)

[![AWT](https://camo.githubusercontent.com/e8da3168434cd64a9cff3cce1fa07ad8b1e094b17c4d46624af07862f315a019/68747470733a2f2f6d7573746166616b68616c65642e636f6d2f696d616765732f6177742e706e67)](https://camo.githubusercontent.com/e8da3168434cd64a9cff3cce1fa07ad8b1e094b17c4d46624af07862f315a019/68747470733a2f2f6d7573746166616b68616c65642e636f6d2f696d616765732f6177742e706e67)Create Laravel Lang file for current locale and translate the keys from google

Laravel Awesome Translation Helper using Google Translation

```
// Generate translation file based in current app locale
 awtTrans('Hello World !')
```

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

[](#installation)

Require this package, with [Composer](https://getcomposer.org/), in the root directory of your project.

```
$ composer require mkhdev/awt
```

Add the service provider to `config/app.php` in the `providers` array, or if you're using Laravel 5.5, this can be done via the automatic package discovery.

```
mkhdev\AWT\AWTServiceProvider::class,
```

#### ★ New Config File

[](#-new-config-file)

Publish package config file "awt.php" to access new customize features

```
php artisan vendor:publish --provider=mkhdev\AWT\AWTServiceProvider
```

- This file allow you to Enable/Disable Google Translator
- Enable/Disable application current locale for translator
- Set default locale if you disabled app locale for translator

Documentation
-------------

[](#documentation)

### Helper Function

[](#helper-function)

You can use helper function to get the trans key or generate it if not found

```
 awtTrans('Hello World !')
```

In view you can use it like this

```
 {{awtTrans('Hello World !')}}
```

### Blade Directives

[](#blade-directives)

You can use our blade directive for fast translation

```
 @awt('Hello World !')
```

### Customize Locale

[](#customize-locale)

You can customize the locale by adding it as a second argument

```
awtTrans('Hello World !', 'ar')
{{awtTrans('Hello World !', 'ar')}}
@awt('Hello World !', 'ar')
```

License
-------

[](#license)

[MIT](LICENSE) © [Mustafa Khaled](https://github.com/mustafakhaleddev)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

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

1048d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/465ce474e9c105751d2df13e0aa0f243cdd37909529b7f957cac01251644b1b1?d=identicon)[mohamedhabibwork](/maintainers/mohamedhabibwork)

---

Top Contributors

[![mustafakhaleddev](https://avatars.githubusercontent.com/u/25182746?v=4)](https://github.com/mustafakhaleddev "mustafakhaleddev (8 commits)")[![mohamedhabibwork](https://avatars.githubusercontent.com/u/64292519?v=4)](https://github.com/mohamedhabibwork "mohamedhabibwork (3 commits)")[![mohamedsabil83](https://avatars.githubusercontent.com/u/10126040?v=4)](https://github.com/mohamedsabil83 "mohamedsabil83 (2 commits)")

---

Tags

laravellocalizationlanguagetranslatetranslationmultilingualmulti-languageLaravel-langlaravel-multi-languagelaravel localizationmultilingual support

### Embed Badge

![Health badge](/badges/mohamedhabibwork-awt/health.svg)

```
[![Health](https://phpackages.com/badges/mohamedhabibwork-awt/health.svg)](https://phpackages.com/packages/mohamedhabibwork-awt)
```

###  Alternatives

[codezero/laravel-localized-routes

A convenient way to set up, manage and use localized routes in a Laravel app.

543638.1k4](/packages/codezero-laravel-localized-routes)[jayesh/laravel-gemini-translator

An interactive command to extract and generate Laravel translations using Gemini AI.

691.7k1](/packages/jayesh-laravel-gemini-translator)[omaralalwi/lexi-translate

Laravel translation package with morph relationships and caching.

754.3k2](/packages/omaralalwi-lexi-translate)[longman/laravel-multilang

Package to integrate multi language (multi locale) functionality in Laravel 5.x

5514.4k1](/packages/longman-laravel-multilang)[zachleigh/laravel-lang-bundler

Create Laravel translations bundles.

2512.5k](/packages/zachleigh-laravel-lang-bundler)

PHPackages © 2026

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