PHPackages                             batrox/laravel5-artisan-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. batrox/laravel5-artisan-language

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

batrox/laravel5-artisan-language
================================

Add artisan commands for language strings

v1.0.0(1y ago)032MITPHPPHP &gt;=5.6.4

Since Oct 25Pushed 1y agoCompare

[ Source](https://github.com/batrox/laravel-artisan-language)[ Packagist](https://packagist.org/packages/batrox/laravel5-artisan-language)[ Docs](https://github.com/bestmomo/laravel-artisan-language)[ RSS](/packages/batrox-laravel5-artisan-language/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Laravel Artisan Language
------------------------

[](#laravel-artisan-language)

This package is to add artisan commands for language strings to Laravel&gt;=5.4 project.

Because when you have all your base strings in your project you have no way to easily get them to create a JSON file for a locale. You have to check all files... So this package helps you and do that automaticaly, and do some other tasks like list all strings and synchronise a locale JSON file...

### Features

[](#features)

Add these 4 artisan commands :

- **language:strings** to list all project strings (in *app* and *resource/views* folders)
- **language:make** to create a JSON file for the locale filled with project strings
- **language:diff** to show differences between locale JSON file and project strings
- **language:sync** to synchronise locale JSON file with project strings

### Installation

[](#installation)

Add package to your composer.json file :

```
    composer require bestmomo/laravel5-artisan-language --dev

```

For Laravel 5.4 add service provider to `config/app.php` (with Laravel &gt;=5.5 there is the package discovery):

```
    Bestmomo\ArtisanLanguage\ArtisanLanguageProvider::class,

```

### Configuration (optional)

[](#configuration-optional)

if you need to change some parameters you can add a config file in the config path of your project which name is `artisan-language.php` with content like before :

```
