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

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

khrdev/awt
==========

Awesome Translation For Laravel

v1.1(7y ago)061MITPHP

Since Jul 29Pushed 2y agoCompare

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

READMEChangelogDependencies (1)Versions (3)Used By (0)

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

[](#awt-translation)

!\[AWT\] 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 khrdev/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.

```
khrdev\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=khrdev\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) © [Khaled Reda](https://github.com/speedo2003r)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 53.3% 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 ~128 days

Total

2

Last Release

2721d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a96ccd3623f05f09feafc85aa89507111fc84757f1aa16ccd856006fafbf7e03?d=identicon)[speedo2003r](/maintainers/speedo2003r)

---

Top Contributors

[![mustafakhaleddev](https://avatars.githubusercontent.com/u/25182746?v=4)](https://github.com/mustafakhaleddev "mustafakhaleddev (8 commits)")[![speedo2003r](https://avatars.githubusercontent.com/u/25309908?v=4)](https://github.com/speedo2003r "speedo2003r (5 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/khrdev-awt/health.svg)

```
[![Health](https://phpackages.com/badges/khrdev-awt/health.svg)](https://phpackages.com/packages/khrdev-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)
