178inaba/toml-helper
Composer 安装命令:
composer require 178inaba/toml-helper
包简介
helper for loading toml.
README 文档
README
helper for loading toml.
install
$ composer require 178inaba/toml-helper
env
TOML_DIR
default toml directory is ../tomls.
change toml directory to set TOML_DIR.
usage
directory structure is
app
|-- public
| +-- index.php
|-- foo
| +-- bar
| +-- example.toml
...
example.toml is
[author] PHP = "Rasmus Lerdorf"
index.php is
<?php require __DIR__.'/../vendor/autoload.php'; putenv('TOML_DIR='.__DIR__.'/../foo/bar'); $phpAuthor = toml('example.author.PHP'); echo $phpAuthor."\n";
run
$ php index.php Rasmus Lerdorf
License
统计信息
- 总下载量: 83
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-07-08