PHPackages                             thinhpd/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. thinhpd/translate

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

thinhpd/translate
=================

:package\_description

1.0.4(6y ago)09licensePHPCI failing

Since Jan 17Pushed 6y ago1 watchersCompare

[ Source](https://github.com/ViralS-thinhpd/infoym-translate)[ Packagist](https://packagist.org/packages/thinhpd/translate)[ Docs](https://github.com/thinhpd/translate)[ RSS](/packages/thinhpd-translate/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (5)Versions (6)Used By (0)

Translate
=========

[](#translate)

[![Latest Version on Packagist](https://camo.githubusercontent.com/da956dae69a89ca9b1e07911542d866ad7ef18d5426f6c148561594d2c41dc41/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7468696e6870642f7472616e736c6174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/thinhpd/translate)[![Total Downloads](https://camo.githubusercontent.com/9e5de62ab65e9ea7d6de1ec9f611753ccbd95286c540c044f6119bd1c25b2392/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7468696e6870642f7472616e736c6174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/thinhpd/translate)[![Build Status](https://camo.githubusercontent.com/f73dfed980aec7c18dde8186b2705c8da0c47213107d8465236bfaf8adb6dc67/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7468696e6870642f7472616e736c6174652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/thinhpd/translate)[![StyleCI](https://camo.githubusercontent.com/cb13a877afd1dbe223c631789c3f922d3ace958fdb334a9cce9b26afefbc2ebd/68747470733a2f2f7374796c6563692e696f2f7265706f732f31323334353637382f736869656c64)](https://styleci.io/repos/12345678)

This is where your description should go. Take a look at [contributing.md](contributing.md) to see a to do list.

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

[](#installation)

trong infoym, trước khi cài đặt hãy chạy trước 2 câu lệnh để public localization

```
php artisan infyom:publish --localized
php artisan infyom.publish:layout --localized
```

Via Composer

```
composer require thinhpd/translate
```

Run command

```
php artisan vendor:publish --provider="Thinhpd\Translate\TranslateServiceProvider"
```

Add code in Kernel in $middlewareGroups 'web'

```
\App\Http\Middleware\Localization::class,
```

Add route in routes/web.php

```
Route::get('lang/{lang}', 'LangController@changeLang')->name('lang');
```

Create change html : add code in html

```

                            VI

                            EN

```

Usage
-----

[](#usage)

Change log
----------

[](#change-log)

Please see the [changelog](changelog.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

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

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [author name](https://github.com/thinhpd)
- [All Contributors](../../contributors)

License
-------

[](#license)

license. Please see the [license file](license.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~5 days

Total

5

Last Release

2292d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/53259346?v=4)[ViralS-thinhpd](/maintainers/ViralS-thinhpd)[@ViralS-thinhpd](https://github.com/ViralS-thinhpd)

---

Top Contributors

[![ThinhPhan96](https://avatars.githubusercontent.com/u/51203902?v=4)](https://github.com/ThinhPhan96 "ThinhPhan96 (5 commits)")

---

Tags

laraveltranslate

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[outl1ne/nova-translatable

A laravel-translatable extension for Laravel Nova.

203416.9k8](/packages/outl1ne-nova-translatable)[kerigard/laravel-lang-ru

Ru lang for Laravel

2116.8k](/packages/kerigard-laravel-lang-ru)[itsmattburgess/laravel-translate

Populate laravel translation files using services such as Google Translate

222.5k](/packages/itsmattburgess-laravel-translate)

PHPackages © 2026

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