asperhsu / lang-excel-converter
Laravel localization import/export to excel converter
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/asperhsu/lang-excel-converter
Requires
- illuminate/support: ~5
- maatwebsite/excel: ^3.1
Requires (Dev)
- mockery/mockery: ^1.1
- orchestra/testbench: ~3.0
- phpunit/phpunit: ~7.0
- sempro/phpunit-pretty-print: ^1.0
This package is auto-updated.
Last update: 2025-10-23 22:23:04 UTC
README
Lang Excel Converter
Export localization to Excel. Each sheet is a group contains its' all locales translation. Import Excel to localization files.
Installation
Via Composer
$ composer require asper/langexcelconverter
Usage
Import
Command:
php artisan lang-excel:import {filename=translations.xlsx} {--disk}
Controller:
use Maatwebsite\Excel\Facades\Excel; use Asper\LangExcelConverter\Imports\TranslationsImport; Excel::import(new TranslationsImport, 'YOUR FILE');
Export
Command:
php artisan lang-excel:export {filename=translations.xlsx} {--disk}
Controller:
use Maatwebsite\Excel\Facades\Excel; use Asper\LangExcelConverter\Exports\TranslationsExport; // store Excel::store(new TranslationsExport, 'YOUR FILE NAME'); // send download response return Excel::download(new TranslationsExport, 'YOUR FILE NAME');
more Excel Facade usage: Maatwebsite/Laravel-Excel
Demo Project
asperhsu/langexcelconverter-demo
Troubleshooting
"SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES)" when import
- publish excel config
php artisan vendor:publish --provider="Maatwebsite\Excel\ExcelServiceProvider"
- change config
[
...
'transactions' => [
'handler' => null, // change 'db' to null
],
...
]
