PHPackages                             mydnic/laravel-yaml-translation - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. mydnic/laravel-yaml-translation

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

mydnic/laravel-yaml-translation
===============================

Add YAML file support to Laravel TranslationServiceProvider, fork of devitek/laravel-yaml-translation

v1.1.0(1y ago)165MITPHPPHP &gt;=8.1

Since Apr 4Pushed 1y agoCompare

[ Source](https://github.com/mydnic/laravel-yaml-translation)[ Packagist](https://packagist.org/packages/mydnic/laravel-yaml-translation)[ RSS](/packages/mydnic-laravel-yaml-translation/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

Yaml Translation
================

[](#yaml-translation)

Based and forked from

Add Yaml file support for Laravel
---------------------------------

[](#add-yaml-file-support-for-laravel)

This package uses Symfony/Yaml parser, and is forked from [Devitek/laravel-yaml-translation](https://github.com/Devitek/laravel-yaml-translation)

Installation
------------

[](#installation)

### Composer

[](#composer)

`composer require mydnic/laravel-yaml-translation`

### Replace Service Provider

[](#replace-service-provider)

You have to replace

`Illuminate\Translation\TranslationServiceProvider::class,`

with

`Mydnic\Core\Translation\TranslationServiceProvider::class,`

in `config/app.php`.

How to use
----------

[](#how-to-use)

Instead of using the regular **php** files to input your translation, use **yml** or **yaml** files instead.

**PHP**:

```
