PHP code example of lmz / hyperf-config

1. Go to this page and download the library: Download lmz/hyperf-config library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

lmz / hyperf-config example snippets


\Hyperf\Contract\ConfigInterface::class => \Hyperf\TfConfig\ConfigFactory::class,

return [
    'config' => [
        'db' => 'test',
    ],
];

'test' => [
    'config' => [
        'db' => 'test',
    ],
];

[
    'demo' => [
        'test' => [
            'config' => [
                'db' => 'test',
            ],
        ],
    ],
]
ini
PHASE=dev