devitek/yaml-translation
| Install | |
|---|---|
composer require devitek/yaml-translation |
|
| Latest Version: | 4.1.0 |
| PHP: | >=7.0 |
| Laravel: | 5 |
| Older releases: | 4 |
| License: | MIT |
| Last Updated: | Sep 28, 2017 |
| Links: | GitHub · Packagist |
Add Yaml file support for Laravel 5 TranslationServiceProvider
This package uses Symfony/Yaml parser.
Installing
Add "devitek/yaml-translation": "4.*" to your composer.json by running :
composer require devitek/yaml-translation
And select version: 4.*
Finally, publish all vendor assets to create a yaml-translation.php:
php artisan vendor:publish
Add support in Laravel
You have to replace
'Illuminate\Translation\TranslationServiceProvider',
with
'Devitek\Core\Translation\TranslationServiceProvider',
in app/config/app.php.
How to use
Just use regular php files or use yml or yaml files instead.
PHP :
<?php
return [
'hello' => 'Hello :name',
'author' => 'Devitek',
];
Will be equivalent to :
YAML
hello: Hello :name
author: Devitek
Enjoy it ! Feel free to fork :) !
Related Packages
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Cli error handling for console/command-line PHP applications.
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 4.1.0 | >=7.0 | ~5.5 | MIT | |
| 4.0.0 | >=7.0 | ~5.5 | MIT | |
| 3.0.0 | >=5.6.0 | ~5.4.0 | MIT | |
| 2.1.1 | >=5.6.0 | ~5.4.0 | MIT | |
| 2.1.0 | >=5.6.0 | ~5.4.0 | MIT | |
| 2.0.1 | >=5.4.0 | 5.x | MIT | |
| 2.0 | >=5.4.0 | 5.x | ||
| 1.1 | >=5.4.0 | 5.x | ||
| 1.0 | >=5.4.0 | 5.x | ||
| 0.1.2 | >=5.4.0 | 4.x | ||
| 0.1 | >=5.3.0 | 4.x |
