This package provide default excess object based configuration.
Console run:
composer require streamcommon/excess-configuration
Or add into your composer.json
:
"require": {
"streamcommon/excess-configuration": "*"
}
use Streamcommon\Excess\Configuration\{Credential, Connection};
$credential = new Credential([
'username' => 'user',
'password' => 'password',
]);
$connection = new Connection([
'host' => 'localhost',
'port' => 8080
]);