PHP code example of supercute / bitrix-config
1. Go to this page and download the library: Download supercute/bitrix-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/ */
supercute / bitrix-config example snippets
return [
'app' => [
'name' => env('APP_NAME'),
'env' => env('APP_ENV', 'production'),
],
];
use Supercute\BitrixConfig\Config;
Config::init($_SERVER['DOCUMENT_ROOT']);
config('app.name');
env('APP_NAME');
<root>/local/php_interface/