indigofeather / resource-loader
The resource loader for json, ini, yaml, php
Installs: 125
Dependents: 2
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/indigofeather/resource-loader
Requires
- php: >=5.6.0
- symfony/finder: ~3.1
Requires (Dev)
- phpunit/phpunit: 5.4.*
- symfony/yaml: ~3.1
Suggests
- symfony/yaml: Allows YAML config handling.
This package is not auto-updated.
Last update: 2025-10-11 20:50:38 UTC
README
The resource loader for json, ini, yaml, php
Requirement
- PHP >=5.4
Installing via Composer
The recommended way to install Resource-Loader is through Composer.
# Install Composer curl -sS https://getcomposer.org/installer | php
Next, update your project's composer.json file to include Resource-Loader:
{ "require": { "indigofeather/resource-loader": "dev-master" } }
Usage
<?php require_once 'vendor/autoload.php'; use Indigofeather\ResourceLoader\Container; $container = new Container(); $data = $container->addPaths([__DIR__.'/resources/foo', __DIR__.'/resources/bar']) ->setDefaultFormat('yml') ->load('data'); print_r($data);
License
MIT