Download the PHP package linkorb/loader without Composer
On this page you can find all versions of the php package linkorb/loader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download linkorb/loader
More information about linkorb/loader
Files in linkorb/loader
Package loader
Short Description Loader: generic data/config loader with advanced features
License MIT
Homepage https://github.com/linkorb/loader
Informations about the package loader
Loader
Generic data/config loader with advanced features
Usage:
Features
File formats:
- JSON
- JSON5 (comments, trailing commas, etc)
- YAML
JSON References ($ref)
You can use json references in any of the supported file formats (json, json5, yaml)
example:
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)
You can reference other variables anywhere in your files:
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:
Variables in references:
You can also use variables in references:
License
MIT. Please refer to the license file for details.
Brought to you by the LinkORB Engineering team
Check out our other projects at linkorb.com/engineering.
Btw, we're hiring!
All versions of loader with dependencies
guzzlehttp/guzzle Version ^6.0
psr/log Version ^1.0
symfony/expression-language Version ^3.0|^4.0
symfony/yaml Version ^3.0|^4.0