ifcastle/configurator-ini 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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:

  • ConfigInterface
  • RepositoryReaderInterface
  • ServiceCollectionInterface
  • ServiceCollectionWriterInterface

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-08-04