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

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

aktaa/laravel-translate
=======================

Package for Laravel translate

08CSS

Since May 11Pushed 8y agoCompare

[ Source](https://github.com/mohammadaktaa1995/laravel-translatable)[ Packagist](https://packagist.org/packages/aktaa/laravel-translate)[ RSS](/packages/aktaa-laravel-translate/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

laravel Translatable
====================

[](#laravel-translatable)

This package to make translate easly in laravel and to save your translate words in datatabse with many usefull functions.

Install
-------

[](#install)

Via Composer

```
$ composer require Aktaa/laravel-translate
```

Usage
-----

[](#usage)

You shoud publish provider to use package without errors.

```
$ php artisan vendor:publish --provider=Aktaa\translatable\TranslatableServiceProvider
```

After that use this command ti initialize package's files (Model,Provider,viewComposer,helper file,translate table migration)

```
$ php artisan make:translate-init --langs=en,ar
```

The name of Model will be Translate by default if you want to change it you just write this command istead of the above, and you want to deploy it in another directory you just add option `bash --dir=folder`.

```
$ php artisan make:translate-init Example --langs=en,ar --dir=Models
```

The file generated is:

App\\Helper\\Helpers.php,

App\\Models\\Translate.php,

App\\Providers\\ComposerServiceProvider.php,

database\\migrations\\2018\_05\_09\_124224\_create\_translates\_table.php,

resources\\lang{lang}\\words.php,

The words file is if you want to use php helper function ` trans('words.example')`.

you should put in ` app.config` file.

```
App\Providers\ComposerServiceProvider::class
```

and

```
Aktaa\translatable\TranslatableServiceProvide::class
```

Facade:

```
   'Translatable' => Aktaa\translatable\Facades\Translatable::class,
```

The helper function is

```
translate($word,$lang,$default);
ex:translate('hello_word',Translatable::getCurrentLocale(),'Hello World!);
```

`$default` the word appear if the word you entered doesn't exist.

After all of this you will be able to use it go to this url:

```
 http://localhost/your-project-name/public/{lang}/translates
```

[![alt text](https://github.com/mohammadaktaa1995/laravel-translatable/raw/master/Screenshot%20(91).png)](https://github.com/mohammadaktaa1995/laravel-translatable/blob/master/Screenshot%20(91).png)

[![alt text](https://github.com/mohammadaktaa1995/laravel-translatable/raw/master/Screenshot%20(92).png)](https://github.com/mohammadaktaa1995/laravel-translatable/blob/master/Screenshot%20(92).png)

[![alt text](https://github.com/mohammadaktaa1995/laravel-translatable/raw/master/Screenshot%20(93).png)](https://github.com/mohammadaktaa1995/laravel-translatable/blob/master/Screenshot%20(93).png)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

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

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/39169584?v=4)[Mohammad Aktaa](/maintainers/mohammadaktaa1995)[@mohammadaktaa1995](https://github.com/mohammadaktaa1995)

---

Top Contributors

[![mohammadaktaa1995](https://avatars.githubusercontent.com/u/39169584?v=4)](https://github.com/mohammadaktaa1995 "mohammadaktaa1995 (13 commits)")

### Embed Badge

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

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

###  Alternatives

[symfony/translation

Provides tools to internationalize your application

6.6k836.5M2.1k](/packages/symfony-translation)[nesbot/carbon

An API extension for DateTime that supports 281 different languages.

169661.4M4.8k](/packages/nesbot-carbon)[joedixon/laravel-translation

A tool for managing all of your Laravel translations

717911.4k11](/packages/joedixon-laravel-translation)[illuminate/translation

The Illuminate Translation package.

6936.4M495](/packages/illuminate-translation)[lajax/yii2-translate-manager

Translation management extension for Yii 2

227578.8k13](/packages/lajax-yii2-translate-manager)[larswiegers/laravel-translations-checker

Make sure your laravel translations are checked and are included in all languages.

256423.2k2](/packages/larswiegers-laravel-translations-checker)

PHPackages © 2026

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