PHPackages                             supercute/bitrix-config - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. supercute/bitrix-config

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

supercute/bitrix-config
=======================

Configuration for 1C Bitrix

v2.0.1(1mo ago)02BSD-3-ClausePHPCI passing

Since Jul 3Pushed 1mo agoCompare

[ Source](https://github.com/supercute/bitrix-config)[ Packagist](https://packagist.org/packages/supercute/bitrix-config)[ RSS](/packages/supercute-bitrix-config/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

bitrix-config
=============

[](#bitrix-config)

Библиотека для работы с конфигурацией в 1C-Битрикс с поддержкой `.env`.

[![Software License](https://camo.githubusercontent.com/a42570ff46c0aab2eae7aab733d7b3626edd07f6f3fba921d53ff7bdca889f5e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d425344253230332d2d436c617573652d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Latest Version](https://camo.githubusercontent.com/89ae4e224224434ab38deddc41b19335bbb67efe81fd4c8c11c468ecafc3e1e0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7375706572637574652f6269747269782d636f6e6669672e7376673f7374796c653d666c61742d737175617265)](https://github.com/supercute/bitrix-config/releases)

Установка
---------

[](#установка)

```
composer require supercute/bitrix-config
```

Настройка
---------

[](#настройка)

Создайте файлы `.env` и `config.php` в директории:

```
/local/php_interface/

```

При необходимости их можно разместить в любом другом месте, указав путь при инициализации.

Файл `config.php` должен возвращать массив конфигурации. Для получения значений из окружения можно использовать функцию `env()`:

```
