Skip to content

LaraPackage/LanguageFile

Repository files navigation

Laravel Language File Creator

Build Status SensioLabsInsight Scrutinizer Code Quality Code Coverage Latest Stable Version License

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,
];

About

A package to create language files in Laravel

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages