heartsentwined/yaml
Composer 安装命令:
composer require heartsentwined/yaml
包简介
Wrapper around Symfony's Yaml parser - added __DIR__ support.
README 文档
README
Wrapper around Symfony's Yaml parser - added __DIR__ support.
Installation
{
"require": {
"yalesov/yaml": "2.*"
}
}
Usage
Two constants added:
__DIR__: behave as expected___DIR___(an extra underscore around): literal__DIR__
Parse a Yaml file foo/bar.yml:
use Yalesov\Yaml\Yaml; $parsedArray = Yaml::parse('foo/bar.yml');
Parse a Yaml string foo: bar (of course, neither __DIR__ nor ___DIR___ would be available)
use Yalesov\Yaml\Yaml; $parsedArray = Yaml::parse('foo: bar');
统计信息
- 总下载量: 13.15k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: ISC
- 更新时间: 2012-09-17