dev-master
9999999-devHandles merging of configurations
MIT
The Requires
- php >=5.4
The Development Requires
by Brofist
v0.1
0.1.0.0Handles merging of configurations
MIT
The Requires
- php >=5.4
The Development Requires
by Brofist
Wallogit.com
2017 © Pedro Peláez
Handles merging of configurations
Handles merging of configurations, (*1)
Code information:, (*2)
Package information:, (*4)
<?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',
],
];
composer require brofist/configuration
Here is the issue tracker., (*6)
MIT, (*7)
Handles merging of configurations
MIT
Handles merging of configurations
MIT