ifcastle/configurator-ini
最新稳定版本:v0.7.0
Composer 安装命令:
composer require ifcastle/configurator-ini
包简介
Configurator component.
README 文档
README
A simple ini-configurator for the IfCastle framework.
Implement the main application configuration and service configuration.
The package implements the following interfaces:
ConfigInterfaceRepositoryReaderInterfaceServiceCollectionInterfaceServiceCollectionWriterInterface
Installation
This package must be installed within the IfCastle application environment, i.e., in
ifcastle/package-installer, if you want the dependencies to be correctly defined.
composer require ifcastle/configurator-ini
Usage
The package defines two ini files:
- the main application configuration file:
main.ini - the service registry:
services.ini
All files must be located in the root directory of the project.
Syntax
This package uses the ini_parse function under the hood in data type mode
and additionally converts sections of the type [section.key] into a nested array.
Automatic replacement for ENV variables will also work, i.e., syntax with "%":
[database] host = %DB_HOST% port = %DB_PORT% user = %DB_USER% password = %DB_PASSWORD%
See also the ini_parse function.
统计信息
- 总下载量: 25
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-08-04