This package creates a ready-to-go language file for Laravel from an array or a traversable object (i.e. collections).
vendor/bin/phpunit
To install the generated file see the docs.
$tags = ['key' => 'value', 'key2' => 'value'];
// this creates a ready to go php language file for Laravel
$fileString = \LanguageFileCreator::make($tags);
If you want to use the facade use the service provider by adding it to your config/app.php
. You will need to add
the facade there as well.
'providers' => [
//...
LaraPackage\LanguageFile\ServiceProvider::class,
];
'aliases' => [
//...
'LanguageFileCreator' => LaraPackage\LanguageFile\Facades\LanguageFileCreator::class,
];