streamcommon/excess-configuration

提供基于对象的默认配置

1.1.1 2022-03-31 12:22 UTC

README

Latest Stable Version Total Downloads License

此包提供基于对象的默认excess配置。

分支

Master Build Status Coverage Status

Develop Build Status Coverage Status

安装

控制台运行

    composer require streamcommon/excess-configuration

或者将其添加到你的 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
    ]);