buibr/yii2-config 问题修复 & 功能扩展

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

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

buibr/yii2-config

Composer 安装命令:

composer require buibr/yii2-config

包简介

Yii2 Config file for params.

README 文档

README

Description

It was nightmare for me to use the Yii:$app->params[xxx], and i create ad Config class to do this.

Installation

The preferred way to install this extension is through composer.

To install, either run

$ composer require buibr/yii2config "*"

or add

$ "buibr/yii2config":"*"

to the `require` section of your composer.json file.

Usage

Example if the `params.php` contains this:

    ...
    'mail'=>[
        ...
        'contact'   => 'buibr@....',
        'from_name' => 'Marketing Team',
        ...
    ]
    ...

then:

Config::param('mail.contact');

For every `.` means sub element of array in the params. If this elemet is not found will be returned false.

License

buibr/yii2config is released under the MIT License. See the bundled LICENSE for details.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-08-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固