PHPackages                             pranto/multi-language - 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. pranto/multi-language

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

pranto/multi-language
=====================

This will work for multi-language

0264↓100%PHP

Since Apr 4Pushed 7y agoCompare

[ Source](https://github.com/pranto101201/multi-lang-package)[ Packagist](https://packagist.org/packages/pranto/multi-language)[ RSS](/packages/pranto-multi-language/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Pranto Multilanguage
====================

[](#pranto-multilanguage)

Pranto Multilanguage is a **dynamic multi-language** system. Where admin can easily add/romove language as he likes.

### Requirements

[](#requirements)

- PHP &gt;= 5.4

### Composer Installation

[](#composer-installation)

Installation is straightforward, setup is similar to every other Laravel Package.

> `composer require pranto/multi-language`

**Note**: This package supports the new auto-discovery features of Laravel 5.5, so if you are working on a Laravel 5.5 project, then your install is complete, you can skip to step 3.

If you are using Laravel 5.0 - 5.4 then you need to add a provider and alias. Inside of your config/app.php define a new service provider

> `'providers' => [ Pranto\MultiLanguage\MultiLanguageServiceProvider::class, ];`

### How To Implement In View

[](#how-to-implement-in-view)

This package is easy to use. It provides a handful of helpful functions for changing language. Add similar this code to frontend.

Make just a migration table:

> `php artisan make:migration create_languages_table`

Add these on migration to create column for table:

```
$table->string('icon');
$table->string('name');
$table->string('code');

```

then run:

> `php artisan migrate`

Now add:

```

     English
    @foreach($lang as $data)
        code) selected  @endif style="color: black"> {{$data->name}}
    @endforeach

```

And jQuery :

```
$(document).on('change', '#langSel', function () {
    var code = $(this).val();
    window.location.href = "{{url('/')}}/change-lang/"+code ;
});

```

Add similar this code to backend (Admin Panel):

- First create **"lang"** folder inside of Laravel &gt; resources &gt; folder.
- create "lang.blade.php" &amp; edit\_lang.blade.php inside **""language"** folder.

#### lang.blade.php , add similar this code:

[](#langbladephp--add-similar-this-code)

**Remember**: Watch route name. You can change you design pattern this code is showing for **route name** activities. **Add This Route/URL**: route('language-manage') / url('language/manager')

```

                        Language Manager  Add New Language

                        Name
                        Code
                        Actions

                    @foreach ($lang_list as $product)

                            {{$product->name}}
                            {!! $product->code !!}

                                 Keyword Edit
                                 Edit
                                  DELETE

                                        Edit Language
                                        ×

                                        {{csrf_field()}}

                                                Language Name :

                                             Update

                                          Delete !
                                        &times;

                                        Are you sure you want to Delete ?

                                            {{csrf_field()}}
                                            {{method_field('delete')}}

                                             Close
                                             DELETE

                    @endforeach

                 Add New Language
                ×

                {{csrf_field()}}

                        Language Name :

                        Language Code :

                     Save

```

#### edit\_lang.blade.php , add similar this code:

[](#edit_langbladephp--add-similar-this-code)

**Remember**: Watch route name. You can change you design pattern this code is showing for **route name** activities.

```

                     {{ $page_title }} (Click Add Translatable Add Put Your Key For Translate)
                    "Add Translatable Key" please careful when you entering word or sentences, there shouldn't be any extra space or break.
                    If your keywords are perfect but translator doesn't work, don't worry. escape all dynamic keywords and add single word, it'll work  .

                                Import Keywords (Select Language)
                                @foreach($list_lang as $data)
                                    id == $la->id) style="display: none" @endif>{{$data->name}}
                                @endforeach

                        Import Now

                    If you import keywords from another language, Your present "{{$la->name}}" all keywords will remove.

                    {{ csrf_field() }}
                    {{method_field('put')}}

                                @{{ key }}

                                Add Translatable Key
                                Save

                                 Update

                    Modal title

                        &times;

                        English

                        {{$la->name}}

                    Close

        window.Laravel = {!! json_encode([
        'csrfToken' => csrf_token(),
    ]) !!};

        window.app = new Vue({
            el: '#app',
            data: {
                datas: {!! $json !!},
                current: '{{ $la->code }}',
                newVal: null,
                newKey: null,

                importData : {
                    code : ''
                }

            },
            methods: {
                save() {
                    $('#langForm').submit();
                },

                deleteElement(key) {
                    Vue.delete(this.datas, key);
                },
                addfield() {
                    Vue.set(this.datas, this.newKey, this.newVal);
                    app.newKey = '';
                    app.newVal = '';
                    // document.getElementById('newlangForm').reset();
                    $("#addModal").modal('hide');
                },
                importKey()
                {
                    var code = this.importData;
                    axios.post('{{route('import_lang')}}', code).then(function (res) {
                        app.datas = res.data;
                    })

                }
            }
        })

```

\*\* That's it, send mail for more detail "" \*\*

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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://www.gravatar.com/avatar/d9412b3f6781eb927e8b449e782b9b16313d3c60e8e7920e6cf0e7eab2100b6c?d=identicon)[pranto101201](/maintainers/pranto101201)

---

Top Contributors

[![devprantoroy](https://avatars.githubusercontent.com/u/30955365?v=4)](https://github.com/devprantoroy "devprantoroy (31 commits)")

### Embed Badge

![Health badge](/badges/pranto-multi-language/health.svg)

```
[![Health](https://phpackages.com/badges/pranto-multi-language/health.svg)](https://phpackages.com/packages/pranto-multi-language)
```

###  Alternatives

[symfony/translation

Provides tools to internationalize your application

6.6k836.5M2.0k](/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.4M491](/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)
