Transform a Laravel language directory into a single JSON array
ravloony/transduct is a Laravel package for transform a laravel language directory into a single json array.
It currently has 2 GitHub stars and 63 downloads on Packagist (latest version v5.2).
Install it with composer require ravloony/transduct.
Discover more Laravel packages by ravloony
or browse all Laravel packages to compare alternatives.
Last updated
Simple package for laravel 4 to export lang folders to JSON.
##Setup & Usage
'Ravloony\Transduct\TransductServiceProvider', to the end of the providers array in /app/config/app.php'Ravloony\Transduct\Facades\Transduct' to the end of the aliases array in /app/config.phpThere is only one method:
Transduct::get('folder'), where folder is a fully qualified folder or subfolder in /app/lang/<locale>/
Transduct is locale aware and will output the current language.