schnittstabil/json-decode-file
Composer 安装命令:
composer require schnittstabil/json-decode-file
包简介
Read and decode JSON files
关键字:
README 文档
README
Read and decode JSON files
Handles UTF byte order marks (BOM), uses kherge/file-manager and seld/jsonlint to throw helpful File and JSON Exceptions respectively.
Install
$ composer require schnittstabil/json-decode-file
Usage
use function Schnittstabil\JsonDecodeFile\jsonDecodeFile; try { $json = jsonDecodeFile('composer.json'); } catch (\KHerGe\File\Exception\ResourceException $err) { echo $err->getMessage(), PHP_EOL; } catch (\Seld\JsonLint\ParsingException $err) { echo $err->getMessage(), PHP_EOL; }
Related
- load-json-file – Node.js version and inspiration of this projeject
License
MIT © Michael Mayer
统计信息
- 总下载量: 1.37k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-09-26