定制 indgy/config 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

indgy/config

Composer 安装命令:

composer require indgy/config

包简介

Simple array config access

README 文档

README

Simple array config access

Install

Install this package via composer:

composer install ignition-studios/config

Usage

Config expects an associative array as the constructor input.

It has one method which will return the value of the specified key.

$config = new Config([
    "api" => [
        "user" => "Alex",
        "pass" => "sEcReT",
    ],
    "theme" => "dark",
]);

$config->get("theme");
<!-- dark -->

$config->get("api");
<!--
[
    "user" => "Alex",
    "pass" => "sEcReT",
]
-->

The get() method will return a default value if the key is not found

$config->get("size", "medium");
<!-- medium -->

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ make test

Contributing

Please see CONTRIBUTING for details.

Credits

License

Proprietary

The code in this repository is proprietary, unauthorised reproduction or distribution is forbidden. Written authorisation may only be granted by a Director of Ignition Studios Ltd.

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-01-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固