larapackage / languagefile
A simple package to easily create language files in Laravel Framework
0.1.1
2015-05-03 00:48 UTC
Requires (Dev)
- phpunit/phpunit: 4.6.*
This package is not auto-updated.
Last update: 2024-11-23 18:09:08 UTC
README
About
This package creates a ready-to-go language file for Laravel from an array or a traversable object (i.e. collections).
Tests
vendor/bin/phpunit
Usage
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);
Service Provider & Facade
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, ];