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: 6 months 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 (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-24T14:27:58.000Z (about 6 years ago)
- Last Synced: 2024-11-11T11:50:37.160Z (8 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://packagist.org/packages/toolkit/file-parse)
[](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