2017 © Pedro Peláez
 

library configuration

Handles merging of configurations

image

brofist/configuration

Handles merging of configurations

  • Friday, November 4, 2016
  • by mjacobus
  • Repository
  • 1 Watchers
  • 0 Stars
  • 236 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Brofist Configuration

Handles merging of configurations, (*1)

Code information:, (*2)

Build Status Coverage Status Code Coverage Scrutinizer Code Climate Issue Count Scrutinizer Code Quality StyleCI, (*3)

Package information:, (*4)

Latest Stable Version Total Downloads Latest Unstable Version License Dependency Status composer.lock, (*5)

Usage

<?php

use Brofist\Configuration\Configuration;

$development = new Configuration([
    'env'   => 'development',
    'admin' => [
        'name'       => 'John',
        'middleName' => 'Some Middle Name',
    ],
]);

$production = new Configuration([
    'env'   => 'production',
    'admin' => [
        'name'     => 'Other Name',
        'lastName' => 'John',
    ],
]);

$application = $development->merge($production);

$application->toArray();

// will return

[
    // replaces when it is not an array
    'env'   => 'production',

    // merges when it is an array, replacing when necessary
    'admin' => [
        'name'       => 'Other Name',
        'middleName' => 'Some Middle Name',
        'lastName'   => 'John',
    ],
];

Installing

composer require brofist/configuration

Issues/Features proposals

Here is the issue tracker., (*6)

Lincense

MIT, (*7)

Authors

The Versions

04/11 2016

dev-master

9999999-dev

Handles merging of configurations

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by Brofist

04/11 2016

v0.1

0.1.0.0

Handles merging of configurations

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by Brofist