2017 © Pedro Peláez
 

library config-file-loader

Configuration file loader in PHP

image

thiphariel/config-file-loader

Configuration file loader in PHP

  • Friday, May 18, 2018
  • by Thiphariel
  • Repository
  • 0 Watchers
  • 1 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Config file loader

Build Status Coverage Status Downloads GitHub license, (*1)

SensioLabsInsight, (*2)

This library is a configuration file loader in PHP that supports JSON and PHP files at the moment., (*3)

Requierements

  • PHP >=7.1

Installation

composer require thiphariel/config-file-loader

Usage

// Create an instance of Config
$config = new Config();

// Load JSON configuration file
$config->load("config.json");

// Load PHP configuration file
$config->load("config.php");

// Getting values
$host = $config->get("host");
$port = $config->get("port");

// Nested keys
$env = $config->get("environment.dev");

Examples of configurations can be found in the tests/config folder., (*4)

The Versions

18/05 2018

dev-master

9999999-dev

Configuration file loader in PHP

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

The Development Requires

by Avatar Thiphariel

file php json config loader

18/05 2018

1.2.0

1.2.0.0

Configuration file loader in PHP

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

The Development Requires

by Avatar Thiphariel

file php json config loader

27/08 2017

1.1.1

1.1.1.0

Configuration file loader in PHP

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

The Development Requires

by Avatar Thiphariel

file php json config loader

27/08 2017

1.1.0

1.1.0.0

Configuration file loader in PHP

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

The Development Requires

by Avatar Thiphariel

file php json config loader

27/08 2017

1.0.0

1.0.0.0

Configuration file loader in PHP

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

The Development Requires

by Avatar Thiphariel

file php json config loader