https://github.com/Ramy-Badr-Ahmed/swh-client
Tip revision: 329a04f7deee56dbeb65248476a64f6cb5981d9d authored by Ramy on 21 May 2024, 13:37:06 UTC
First commit
First commit
Tip revision: 329a04f
swhConfigs.php
<?php
$envFile = __DIR__ . '/.env';
if (file_exists($envFile)) {
$envVariables = parse_ini_file($envFile);
foreach ($envVariables as $key => $value) {
putenv("$key=$value");
}
}
return [
'production' => [
'token' => getenv('SWH_TOKEN_PROD'),
'api-url' => getenv('SWH_API_URL_PROD'),
],
'staging' => [
'token' => getenv('SWH_TOKEN_STAGING'),
'api-url' => getenv('SWH_API_URL_STAGING')
]
];