PHPackages                             okami-chen/yaml-config - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. okami-chen/yaml-config

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

okami-chen/yaml-config
======================

yaml config

1.0.6(7y ago)06MITPHPPHP &gt;=7.0.0

Since Jun 29Pushed 7y agoCompare

[ Source](https://github.com/okami-chen/yaml-config)[ Packagist](https://packagist.org/packages/okami-chen/yaml-config)[ Docs](https://github.com/okami-chen/yaml-config)[ RSS](/packages/okami-chen-yaml-config/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (7)Used By (0)

TableShard
==========

[](#tableshard)

config.yml文件内容
--------------

[](#configyml文件内容)

```
local:
    mysql:
        host: 127.0.0.1
        port: 3306
dev:
    mysql:
        host: 127.0.0.1
        port: 3306
qa:
    mysql:
        host: 127.0.0.1
        port: 3306
pre:
    mysql:
        host: 127.0.0.1
        port: 3306
gr:
    mysql:
        host: 127.0.0.1
        port: 3306
yc:
    mysql:
        host: 127.0.0.1
        port: 3306
production:
    mysql:
        host: 127.0.0.1
        port: 3306
```

读取
--

[](#读取)

```
