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 6d 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 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

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

2366d 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

[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

22.8k69.3k](/packages/grumpydictator-firefly-iii)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k20](/packages/civicrm-civicrm-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[cognesy/instructor-php

The complete AI toolkit for PHP: unified LLM API, structured outputs, agents, and coding agent control

310107.9k1](/packages/cognesy-instructor-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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