2017 © Pedro Peláez
 

library file-loader

File loader with built in caching

image

mlo/file-loader

File loader with built in caching

  • Tuesday, April 25, 2017
  • by mloberg
  • Repository
  • 1 Watchers
  • 0 Stars
  • 12,710 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 4 % Grown

The README.md

File Loader

Latest Stable Version License Build Status Coverage Status Scrutinizer Code Quality SensioLabsInsight, (*1)

FileLoader allows you to load files from a collection of directories and then caches the results for faster access later., (*2)

Installation

composer require mlo/file-loader

Requirements

The following PHP versions are supported., (*3)

  • PHP 5.4
  • PHP 5.5
  • PHP 5.6
  • PHP 7.0
  • HHVM

The following versions of Symfony components are supported., (*4)

  • 2.3
  • 2.7
  • 2.8
  • 3.0

Overview

$cacheDirectory = 'app/cache/config';
$dataDirectory  = 'app/config';

$loader = new \Mlo\FileLoader\FileLoader($cacheDirectory, $dataDirectory, [
    new \Mlo\FileLoader\IniFileLoader(),
    new \Mlo\FileLoader\JsonFileLoader(),
    new \Mlo\FileLoader\YamlFileLoader(),
]);

$config = $loader->load('database.yml');

Supported File Types

  • YAML (.yml/.yaml)
  • JSON (.json)
  • INI (.ini)

The Versions

25/04 2017

dev-master

9999999-dev

File loader with built in caching

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matthew Loberg

16/01 2016

v1.2.0

1.2.0.0

File loader with built in caching

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matthew Loberg

31/12 2015

v1.1.0

1.1.0.0

File loader with built in caching

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matthew Loberg

23/12 2015

v1.0.1

1.0.1.0

File loader with built in caching

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matthew Loberg

03/07 2015

v1.0.0

1.0.0.0

File loader with built in caching

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matthew Loberg