allmarkedup/dayglo
最新稳定版本:v0.2.2
Composer 安装命令:
composer require allmarkedup/dayglo
包简介
A PHP data loader.
README 文档
README
A data file loader/parser for PHP 5.4+.
Installation and use
Using composer:
$ composer require allmarkedup/dayglo
Example
<?php use Amu\Dayglo\Parser; use Amu\Dayglo\Loader; use Amu\Dayglo\ParserCollection; // Create collection with the parsers required $parsers = new ParserCollection([ new Parser\JsonParser(), new Parser\YamlParser() ]); $loader = new Loader($parsers, __DIR__ . '/data'); // load and parse data from a JSON file $file = $loader->fetch('example.json'); $data = $file->getData(); // load and parse data from a YAML file $file = $loader->fetch('test.yaml'); $data = $file->getData();
统计信息
- 总下载量: 145
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-10-30