PHPackages                             tlr/laravel-lang-tools - 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. tlr/laravel-lang-tools

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

tlr/laravel-lang-tools
======================

Some Language Import/Export tools for Laravel

v1.0.0(11y ago)21.7k1[1 issues](https://github.com/tedslittlerobot/laravel-lang-tools/issues)PHPPHP &gt;=5.3.0

Since Feb 13Pushed 11y ago1 watchersCompare

[ Source](https://github.com/tedslittlerobot/laravel-lang-tools)[ Packagist](https://packagist.org/packages/tlr/laravel-lang-tools)[ RSS](/packages/tlr-laravel-lang-tools/feed)WikiDiscussions master Synced today

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

Laravel Language Utils
======================

[](#laravel-language-utils)

> A language export and import command for Laravel 4. (yes, laravel 5 is coming...)

When dealing with agencies and companies who translate programming projects and websites into other languages, they often request it in certain formats.

- Currently works with csv only

### Installation

[](#installation)

Add the following to your `composer.json`'s require object:

`"tlr/laravel-lang-tools": "1.x"`

Then, add `Tlr\LaravelLangTools\LaravelLangToolsServiceProvider` to the `providers` array in `config/app.php`.

### Usage

[](#usage)

The package provides two CLI commands:

#### artisan lang:export

[](#artisan-langexport)

Running `php artisan lang:export` will display the current lang tokens, and all of their translations in a table in the terminal - in a similar manner to viewing laravel's routes.

Running `php artisan lang:export --format csv > translations.csv` will save a csv of all of the translations, and their keys, to a csv file. This can be sent to translators.

#### artisan lang:import

[](#artisan-langimport)

Running `php artisan lang:import translations.csv` will convert a csv file (in the same format as the one outputted) into a laravel-style lang directory structure, with lang.php files in. At the moment, the path to the provided file must be relative to the project directory.

By default, the output is saved to a directory called `lang` in your project's root directory. You can pass a relative path as a third argument to change this. The target directory must not already exist.

### Notes for translators

[](#notes-for-translators)

You may want to give translators some notes from [laravel's localization docs page](http://laravel.com/docs/5.0/localization) - especially regarding variables, and pluralisation.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4159d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/792e2c24d2cd9ca5c55787efcedc0035632fbd3f7df82fa2b6eaa7f2287e226c?d=identicon)[tedslittlerobot](/maintainers/tedslittlerobot)

---

Top Contributors

[![tedslittlerobot](https://avatars.githubusercontent.com/u/1783459?v=4)](https://github.com/tedslittlerobot "tedslittlerobot (16 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tlr-laravel-lang-tools/health.svg)

```
[![Health](https://phpackages.com/badges/tlr-laravel-lang-tools/health.svg)](https://phpackages.com/packages/tlr-laravel-lang-tools)
```

###  Alternatives

[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

725173.2k14](/packages/tallstackui-tallstackui)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.6k29.9M146](/packages/laravel-cashier)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M132](/packages/laravel-pulse)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[livewire/flux

The official UI component library for Livewire.

9527.8M126](/packages/livewire-flux)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M195](/packages/laravel-ai)

PHPackages © 2026

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