承接 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/"

统计信息

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

GitHub 信息

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

其他信息

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