2017 © Pedro Peláez
 

library config

Bootstraps vlucas/phpdotenv and illuminate/config packages

image

davek1312/config

Bootstraps vlucas/phpdotenv and illuminate/config packages

  • Sunday, April 2, 2017
  • by davek1312
  • Repository
  • 0 Watchers
  • 0 Stars
  • 32 Installations
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 14 % Grown

The README.md

davek1312/config

Bootstraps vlucas/phpdotenv and illuminate/config packages., (*1)

Installation

The package is available on Packagist, you can install it using Composer., (*2)

composer require davek1312/config

Configuration

Environment Variables

Copy vendor/davek1312/config/davek1312 folder to your application's root directory and rename config/.env.example to .env. View the .env data format on GitHub. You should not commit your .env file to your version control system., (*3)

Register Configuration Files

To register your configuration files view the davek1312\app documentation., (*4)

Add your configuration files to the registered configuration folder., (*5)

//configuration folder/test.php
<?php 
return [
    'key' => 'value',
];

Usage

Environment Variables

You can use any of the methods from the vlucas/phpdotenv package. You can also use the davek1312_env function., (*6)

// If $key is not found in your .env file $default will be returned
davek1312_env($key, $default = null);

Configuration Files

Retrieving configuration values:, (*7)

use Davek1312\Config\Config;

$config = new Config();
$value = $config->get('tests.key'); //Will return 'value';
$value = $config->get('tests.non_existent'); //Will return NULL;

All other methods for the Config class can be found here., (*8)

The Versions

02/04 2017

dev-master

9999999-dev

Bootstraps vlucas/phpdotenv and illuminate/config packages

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Kelly

config environment env

02/04 2017

v0.3.1

0.3.1.0

Bootstraps vlucas/phpdotenv and illuminate/config packages

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Kelly

config environment env

29/03 2017

v0.2.3

0.2.3.0

Bootstraps vlucas/phpdotenv and illuminate/config packages

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Kelly

config environment env

19/03 2017

v0.2.2

0.2.2.0

Bootstraps vlucas/phpdotenv and illuminate/config packages

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Kelly

config environment env

19/03 2017

v0.2.1

0.2.1.0

Bootstraps vlucas/phpdotenv and illuminate/config packages

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Kelly

config environment env

19/03 2017

v0.1.1

0.1.1.0

Bootstraps vlucas/phpdotenv and illuminate/config packages

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Kelly

config environment env

25/02 2017

v0.0.4

0.0.4.0

Bootstraps vlucas/phpdotenv and illuminate/config packages

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Kelly

config environment env

11/02 2017

v0.0.3

0.0.3.0

Bootstraps vlucas/phpdotenv and illuminate/config packages

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Kelly

config environment env

10/02 2017

v0.0.2

0.0.2.0

Bootstraps vlucas/phpdotenv and illuminate/config packages

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Kelly

config environment env

10/02 2017

v0.0.1

0.0.1.0

Bootstraps vlucas/phpdotenv and illuminate/config packages

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Kelly

config environment env