PHP code example of deflou / service-config

1. Go to this page and download the library: Download deflou/service-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/ */

    

deflou / service-config example snippets


use deflou\components\services\configs\ServiceConfigBase;

$config = [...];// define service configuration
$serviceConfig = new ServiceConfigBase($config);

echo $serviceConfig->getSericeName() . '<pre>';
print_r($serviceConfig->__toArray());