2017 © Pedro Peláez
 

library resource-loader

The resource loader for json, ini, yaml, php

image

indigofeather/resource-loader

The resource loader for json, ini, yaml, php

  • Thursday, July 7, 2016
  • by indigofeather
  • Repository
  • 1 Watchers
  • 1 Stars
  • 93 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Resource-Loader

Build Status, (*1)

The resource loader for json, ini, yaml, php, (*2)

Requirement

  • PHP >=5.4

Installing via Composer

The recommended way to install Resource-Loader is through Composer., (*3)

# Install Composer
curl -sS https://getcomposer.org/installer | php

Next, update your project's composer.json file to include Resource-Loader:, (*4)

{
    "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, (*5)

The Versions

07/07 2016

dev-master

9999999-dev

The resource loader for json, ini, yaml, php

  Sources   Download

MIT

The Requires

 

The Development Requires

by Lance He