Skip to content

indigofeather/resource-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Resource-Loader

Build Status

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

About

The resource loader for json, ini, yaml, php

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages