PHP code example of assertis / config-lib

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

    

assertis / config-lib example snippets



  return [
    'key' => 'value'
  ];
 

$app->register(new ConfigurationProvider(), [
    'config.driver' => new IniDriver($app['dir.root'] . '/configs'),
    'config.validator' => $app['validator'],
    'config.validator.constraints' => null
]);
bash
php vendor/assertis/config-lib/src/Scripts/AddTenant.php {tenantName} {configFileName}  [tenantSchemaFile]
bash
php vendor/assertis/config-lib/src/Scripts/AddTenant.php hex-qa-b2b stage.json