Package Data | |
---|---|
Maintainer Username: | AndyWendt |
Maintainer Contact: | andy@awendt.com (Andy Wendt) |
Package Create Date: | 2015-05-03 |
Package Last Update: | 2015-05-25 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-25 15:02:48 |
Package Statistics | |
---|---|
Total Downloads: | 232 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
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,
];