PHPackages                             kuz/laravel-yaml-translations - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. kuz/laravel-yaml-translations

AbandonedArchivedLibrary[Localization &amp; i18n](/categories/localization)

kuz/laravel-yaml-translations
=============================

Use YAML for your Laravel language files

0.1.0(11y ago)111.3kMITPHPPHP &gt;=5.3.0

Since Jun 11Pushed 11y ago1 watchersCompare

[ Source](https://github.com/akuzemchak/laravel-yaml-translations)[ Packagist](https://packagist.org/packages/kuz/laravel-yaml-translations)[ RSS](/packages/kuz-laravel-yaml-translations/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (5)Versions (2)Used By (0)

Laravel YAML Translations
=========================

[](#laravel-yaml-translations)

Translating your application sucks. Translating it by throwing a ton of key/value pairs into plain ol' PHP arrays sucks even worse. This package makes it suck a *little* bit less by allowing you to use [YAML](http://www.yaml.org/) to format your [Laravel](http://laravel.com/) language files.

[![Build Status](https://camo.githubusercontent.com/59fa78608f0582ccd0723f1d4c2d0c4f5b24c53d8d4be08cc30481b8a035a9ce/68747470733a2f2f7472617669732d63692e6f72672f616b757a656d6368616b2f6c61726176656c2d79616d6c2d7472616e736c6174696f6e732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/akuzemchak/laravel-yaml-translations)

Requirements
------------

[](#requirements)

- PHP 5.3+
- Laravel 4.1+

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

[](#installation)

First, add the package to your `composer.json` dependencies and run `composer update`:

```
{
    "require": {
        "kuz/laravel-yaml-translations": "0.*"
    }
}

```

Next, you'll need to **replace** the default service provider with the new one in `app/config/app.php`:

```
// 'Illuminate\Translation\TranslationServiceProvider',
'Kuz\Translation\TranslationServiceProvider',

```

That should be it! You can now name your language files with a `.yml` extension, and use valid YAML arrays for your translations, like so:

```
name_label: Your Name
email_label: Your Email Address
password_label: Choose a Password

```

**Also worth noting:** If a language file with a `.yml` extension is not found, the loader will fall back to using the PHP language file if one exists. This means you don't have to convert the stock language files, like `validation.php` or `reminders.php`!

Support
-------

[](#support)

Use the [issue tracker](https://github.com/akuzemchak/laravel-yaml-translations/issues).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4354d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/eee71faac72d01e48a8a5f42f919682e5f50628374bc6171e4e2facf52097932?d=identicon)[akuzemchak](/maintainers/akuzemchak)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kuz-laravel-yaml-translations/health.svg)

```
[![Health](https://phpackages.com/badges/kuz-laravel-yaml-translations/health.svg)](https://phpackages.com/packages/kuz-laravel-yaml-translations)
```

###  Alternatives

[barryvdh/laravel-translation-manager

Manage Laravel Translations

1.7k3.6M17](/packages/barryvdh-laravel-translation-manager)[lexik/translation-bundle

This bundle allows to import translation files content into the database and provide a GUI to edit translations.

4362.7M19](/packages/lexik-translation-bundle)[kkomelin/laravel-translatable-string-exporter

Translatable String Exporter for Laravel

3291.4M10](/packages/kkomelin-laravel-translatable-string-exporter)[laravel-lang/json-fallback

Adds support for fallback JSON string translation

162.2M4](/packages/laravel-lang-json-fallback)[devitek/yaml-translation

Add YAML file support to Laravel TranslationServiceProvider

3345.0k2](/packages/devitek-yaml-translation)[kerigard/laravel-lang-ru

Ru lang for Laravel

2116.8k](/packages/kerigard-laravel-lang-ru)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
