PHPackages                             marcschumann/yamlpathloader - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. marcschumann/yamlpathloader

ActiveLibrary[File &amp; Storage](/categories/file-storage)

marcschumann/yamlpathloader
===========================

Extends the YamlFileLoader from symfony in order to load whole paths with yaml files in it. E.g. translation files.

1560PHP

Since Jun 8Pushed 9y ago2 watchersCompare

[ Source](https://github.com/marc-schumann/yamlpathloader)[ Packagist](https://packagist.org/packages/marcschumann/yamlpathloader)[ RSS](/packages/marcschumann-yamlpathloader/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

[![Build Status](https://camo.githubusercontent.com/3ff743d66fd094ca3cd8ff145b4fea13d06cd076c865681f801f7dc30f15a1c2/68747470733a2f2f7472617669732d63692e6f72672f6d6172632d736368756d616e6e2f79616d6c706174686c6f616465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/marc-schumann/yamlpathloader)

YamlPathLoader
==============

[](#yamlpathloader)

Extends the YamlFileLoader from Symfony in order to load whole paths with yaml files in it. E.g. translation files.

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

[](#installation)

Install YamlPathLoader via your composer as follows:

```
	php composer.phar require marcschumann/yamlpathloader:dev-master

```

Usage
-----

[](#usage)

```
	// Loading translations in silex microframework

	$app->register(new Silex\Provider\TranslationServiceProvider());
	$app['translator'] = $app->share($app->extend('translator', function($translator, $app) {
   		$translator->setLocale($app['locale']);

    	// Using YamlPathLoader - Extension for loading translation files from a directory
    	$translator->addLoader('yaml', new \MarcSchumann\YamlPathLoader\YamlPathLoader);
    	$translator->addResource('yaml', __DIR__.'/locales/en/', 'en');
    	$translator->addResource('yaml', __DIR__.'/locales/de/', 'de');

    	return $translator;
	}));
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15846968?v=4)[MarcSchumann](/maintainers/MarcSchumann)[@marcschumann](https://github.com/marcschumann)

---

Top Contributors

[![marc-schumann](https://avatars.githubusercontent.com/u/2587044?v=4)](https://github.com/marc-schumann "marc-schumann (26 commits)")

---

Tags

silexsymfonytranslation-filesyaml-files

### Embed Badge

![Health badge](/badges/marcschumann-yamlpathloader/health.svg)

```
[![Health](https://phpackages.com/badges/marcschumann-yamlpathloader/health.svg)](https://phpackages.com/packages/marcschumann-yamlpathloader)
```

PHPackages © 2026

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