定制 achinon/yaml_classer 二次开发

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

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

achinon/yaml_classer

最新稳定版本:v1.0.8

Composer 安装命令:

composer require achinon/yaml_classer

包简介

Transforms YAML files into callable classes for easy reference inside of your IDE.

README 文档

README

Transforms YAML files into callable classes for easy reference inside of your IDE.

Setup:

To install the package, run composer require achinon/yaml_classer.

With the package installed, to generate PHP code of off your YAML file, peform the command with the filename and the name of the class you wish for it to have.

php bin/console achinon:yaml_classer example_config.yml ExampleConfig

The PHP Class should be created.

Now you can use Dependency Injection to access your config, or just create a new instance without any additional parameters required.

Usage example

YAML file imported in example above:

example: 1
example2: 'example'
example3:
  example4: 'hey'
  example5: 'hi'
  example6:
    example7: 
      - 'hello'
      - 'sadnioaseinko'
  example8: "https://github.com/Achinon/yaml_classer/"

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-05-23