2017 © Pedro Peláez
 

library config

A configuration component

image

coco-soft/config

A configuration component

  • Friday, March 3, 2017
  • by heropoo
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

config

A configuration component, (*1)

Usage:

Install it via Composer:, (*2)

composer require coco-soft/config

<?php

//require the composer autoload.php file


use coco\config\Config;

//set config file path
Config::setConfigDir('/path/to/config/dir');

//if get charset in app.php return 
$charset = Config::get('app.charset');

//or use a helper function
$charset = config('app.charset');

// the second parameter is if throw a exception
// when this config is not defined

$charset = config('app.charset', true);

The Versions

03/03 2017

dev-master

9999999-dev

A configuration component

  Sources   Download

MIT

by Avatar heropoo

configuration config coco

03/03 2017

v1.0

1.0.0.0

A configuration component

  Sources   Download

MIT

by Avatar heropoo

configuration config coco