2017 © Pedro Peláez
 

library phig

PHP Config library.

image

marella/phig

PHP Config library.

  • Saturday, March 19, 2016
  • by marella
  • Repository
  • 1 Watchers
  • 0 Stars
  • 340 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 1 % Grown

The README.md

Phig

Coverage Status Build Status StyleCI Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

PHP Config Library., (*2)

Quick Usage

composer require marella/phig
<?php

require 'vendor/autoload.php';

$loader = new \Phig\ConfigLoader();
$config = $loader->read(__DIR__.'/config');

$timezone = $config['app.timezone']; // 'UTC'
$locale = $config['app']['locale']; // 'en'
$database = $config['database']; // array
$host = $database['host']; // 'localhost'

where config directory contains these files:, (*3)

app.php, (*4)

<?php

return [
    'timezone' => 'UTC',
    'locale' => 'en',
];

database.php, (*5)

<?php

return [
    'host' => 'localhost',
    'database' => 'forge',
    'username' => 'forge',
    'password' => '',
];

Documentation

See the wiki for more details and documentation., (*6)

Contributing

See contributing guidelines before creating issues or pull requests., (*7)

License

Open-source software released under the MIT license., (*8)

The Versions

19/03 2016

dev-master

9999999-dev

PHP Config library.

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Ravindra Marella

php json xml ini config library yaml yml phig

19/03 2016

v0.0.1

0.0.1.0

PHP Config library.

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Ravindra Marella

php json xml ini config library yaml yml phig