Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/php-toolkit/file-parse
Some file parse utils for php
https://github.com/php-toolkit/file-parse
parse parse-utils php
Last synced: 7 days ago
JSON representation
Some file parse utils for php
- Host: GitHub
- URL: https://github.com/php-toolkit/file-parse
- Owner: php-toolkit
- License: mit
- Created: 2018-02-01T15:49:22.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-24T14:27:58.000Z (over 5 years ago)
- Last Synced: 2024-11-11T11:50:37.160Z (about 2 months ago)
- Topics: parse, parse-utils, php
- Language: PHP
- Homepage:
- Size: 15.6 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# file parse
[![License](https://img.shields.io/packagist/l/toolkit/file-parse.svg?style=flat-square)](LICENSE)
[![Php Version](https://img.shields.io/badge/php-%3E=7.1.0-brightgreen.svg?maxAge=2592000)](https://packagist.org/packages/toolkit/file-parse)
[![Latest Stable Version](http://img.shields.io/packagist/v/toolkit/file-parse.svg)](https://packagist.org/packages/toolkit/file-parse)Some useful file parse utils for the php.
`ini`, `json`, `yml` 格式的文件解析
- json 文件支持去除注释,即是有注释不会导致解析失败
- 支持特殊关键字
- `extend` 继承另一个文件的内容
- `import` 导入另一个文件的内容
- `reference` 参考另一个key的值 **todo**例如在 yml 文件(其他格式的文件类似)可以这样:
```text
// will parse special keywords
extend: ../parent.yml
debug: true
db: import#../db.yml
cache:
debug: reference#debug
```## Install
```bash
composer require toolkit/file-parse
```## License
MIT