PHPackages                             linkorb/loader - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. linkorb/loader

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

linkorb/loader
==============

Loader: generic data/config loader with advanced features

v1.2.1(6y ago)02431MITPHPCI failing

Since Nov 24Pushed 6y ago1 watchersCompare

[ Source](https://github.com/linkorb/loader)[ Packagist](https://packagist.org/packages/linkorb/loader)[ Docs](https://github.com/linkorb/loader)[ RSS](/packages/linkorb-loader/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (4)Dependencies (7)Versions (5)Used By (1)

Loader
======

[](#loader)

Generic data/config loader with advanced features

Usage:
------

[](#usage)

```
$loader = Loader::create();
$data = $loader->load('my.yaml');
```

Features
--------

[](#features)

### File formats:

[](#file-formats)

- JSON
- JSON5 (comments, trailing commas, etc)
- YAML

### JSON References ($ref)

[](#json-references-ref)

You can use json references in any of the supported file formats (json, json5, yaml)

example:

```
localExample:
  $ref: example.json5
remoteExample:
  $ref: https://example.web/example.json
```

This will "include" the referenced files as if they were part of the main file.

The file type is determined based on file extension or (in case of remote files) the HTTP response header

### Variable interpolation (expressions)

[](#variable-interpolation-expressions)

You can reference other variables anywhere in your files:

```
preferences:
  color: green
text: My favorite color is {{hello.color}}!
```

### Helper functions

[](#helper-functions)

You can use various helper functions inside of the variable blocks.

- strtoupper
- strtolower
- ucfirst
- array\_merge\_recursive: recursively merge 2 arrays (can be nested multiple times)
- dict: turn key/value dictionaries into arrays of key+value items

You can register your own helpers too:

```
$interpolator->register(
  'myHelper',
  function ($arguments, $text) {
    // do something with the input arguments and return
    return ucfirst($text);
  }
)
```

### Variables in references:

[](#variables-in-references)

You can also use variables in references:

```
license: MIT
licenseUrl: https://opensource.org/licenses/{{ config.license }}
```

License
-------

[](#license)

MIT. Please refer to the [license file](LICENSE) for details.

Brought to you by the LinkORB Engineering team
----------------------------------------------

[](#brought-to-you-by-the-linkorb-engineering-team)

[![](https://camo.githubusercontent.com/62fb66b034de7ea7fca9fd9776424b5348daa76ef8622caf92c2f7622003e5ef/687474703a2f2f7777772e6c696e6b6f72622e636f6d2f642f6d6574612f74696572312f696d616765732f6c696e6b6f7262656e67696e656572696e672d6c6f676f2e706e67)](https://camo.githubusercontent.com/62fb66b034de7ea7fca9fd9776424b5348daa76ef8622caf92c2f7622003e5ef/687474703a2f2f7777772e6c696e6b6f72622e636f6d2f642f6d6574612f74696572312f696d616765732f6c696e6b6f7262656e67696e656572696e672d6c6f676f2e706e67)
Check out our other projects at [linkorb.com/engineering](http://www.linkorb.com/engineering).

Btw, we're hiring!

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

2412d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1db66b320db18b8036ea68211b7d8a39e7c6da97e6fd29f59a50380ebb69d0bb?d=identicon)[joostfaassen](/maintainers/joostfaassen)

---

Top Contributors

[![joostfaassen](https://avatars.githubusercontent.com/u/411113?v=4)](https://github.com/joostfaassen "joostfaassen (9 commits)")

---

Tags

loaderlinkorb

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/linkorb-loader/health.svg)

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

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M736](/packages/sylius-sylius)[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

23.9k69.5k](/packages/grumpydictator-firefly-iii)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21866.0M1.7k](/packages/drupal-core)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)

PHPackages © 2026

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