承接 maer/config-yaml-reader 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

maer/config-yaml-reader

Composer 安装命令:

composer require maer/config-yaml-reader

包简介

A yaml reader for the maer/config library

README 文档

README

Build Status

To keep the maer/config library small and without dependencies, it doesn't support yaml-files out of the box.

If you want to use yaml-files, you can install this reader and register it for the yaml-file extension. This extension requires you to use maer/config version 2+.

Install

composer require maer/config-yaml-reader

If maer/config wasn't installed before, it will also be installed.

Register

You need to register the reader and associate it with the yml-file extension.

# Either add the reader to an existing config instance
$config->setReader('yml', new Maer\Config\Yaml\Reader);

# or you can add the reader when you instantiate the config class as a second argument
$options = [
    'readers' => [
        'yml' => new Maer\Config\Yaml\Reader,
    ],
];

$config = new Config(['/path-to-your-config.yml'], $options);

If you go for the first option, you need to set the reader before you load the yaml-file.

Exceptions

If the yaml file couldn't be parsed, it will throw a Symfony\Component\Yaml\Exception\ParseException.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-04-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固