ablunier / laravel-lang-installer
Command for easily add languages to a Laravel project
Installs: 971
Dependents: 0
Suggesters: 6
Security: 0
Stars: 12
Watchers: 2
Forks: 2
Open Issues: 1
pkg:composer/ablunier/laravel-lang-installer
Requires
- php: >=5.5.9
- illuminate/support: 5.1.*|5.2.*|5.3.*|5.4.*|5.5.*
This package is auto-updated.
Last update: 2025-09-13 04:01:10 UTC
README
Install translation files for any language with a command in your laravel projects. The language files will be downloaded from the awesome caouecs languages repository.
Requirements
- PHP 5.5 or higher.
- Laravel >= 5.1
Installation
Add the package to your composer.json:
composer require ablunier/laravel-lang-installer
Add the service provider in app.php:
Ablunier\Laravel\Translation\LanguageInstallerServiceProvider::class,
Publish the package's assets:
php artisan vendor:publish
Configuration
Edit the 'lang-installer.php' file in your config folder to add your required languages and files.
Usage
Execute the command:
php artisan lang:install