LaraPackage / LanguageFile by AndyWendt

A simple package to easily create language files in Laravel Framework
232
2
2
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

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