PHPackages                             toolkit/file-parse - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. toolkit/file-parse

Abandoned → [toolkit/fsutil](/?search=toolkit%2Ffsutil)Library[Parsing &amp; Serialization](/categories/parsing)

toolkit/file-parse
==================

some file parse tool library of the php

v1.0.4(7y ago)3331MITPHPPHP &gt;7.1.0

Since Feb 1Pushed 6y ago1 watchersCompare

[ Source](https://github.com/php-toolkit/file-parse)[ Packagist](https://packagist.org/packages/toolkit/file-parse)[ Docs](https://github.com/php-toolkit/file-parse)[ RSS](/packages/toolkit-file-parse/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)Dependencies (1)Versions (6)Used By (0)

file parse
==========

[](#file-parse)

[![License](https://camo.githubusercontent.com/f16c772456e761caaef6be4d1c5c486d971bb5efc5cf1614379b6789b36360c3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f746f6f6c6b69742f66696c652d70617273652e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Php Version](https://camo.githubusercontent.com/d90f27811e67c164d7cb22e93d0a6020a77beed41f0790469d90188fd42c57f5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d2533453d372e312e302d627269676874677265656e2e7376673f6d61784167653d32353932303030)](https://packagist.org/packages/toolkit/file-parse)[![Latest Stable Version](https://camo.githubusercontent.com/764d6c61b561171587ab79b14076d1216dcac3f37b5674cf2381258c0377a153/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f6f6c6b69742f66696c652d70617273652e737667)](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 文件(其他格式的文件类似)可以这样：

```
// will parse special keywords
extend: ../parent.yml
debug: true
db: import#../db.yml
cache:
  debug: reference#debug

```

Install
-------

[](#install)

```
composer require toolkit/file-parse
```

License
-------

[](#license)

MIT

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~91 days

Total

5

Last Release

2656d ago

PHP version history (2 changes)v1.0.0PHP &gt;=7.0.0

v1.0.3PHP &gt;7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/d23e1decaf354e8f36a7ad61128865dc78dd63336c2d023d79aa3ff8ba2a05ff?d=identicon)[inhere](/maintainers/inhere)

---

Top Contributors

[![inhere](https://avatars.githubusercontent.com/u/5302062?v=4)](https://github.com/inhere "inhere (17 commits)")

---

Tags

parseparse-utilsphpphplibrarytool

### Embed Badge

![Health badge](/badges/toolkit-file-parse/health.svg)

```
[![Health](https://phpackages.com/badges/toolkit-file-parse/health.svg)](https://phpackages.com/packages/toolkit-file-parse)
```

###  Alternatives

[bupy7/xml-constructor

The array-like constructor of XML document structure.

1337.9k](/packages/bupy7-xml-constructor)[leonelquinteros/php-toml

PHP parser for TOML language ( https://github.com/toml-lang/toml )

266.7k](/packages/leonelquinteros-php-toml)[phppkg/config

Config manage, load, get. Supports INI,JSON,YAML,NEON,PHP format file

133.5k](/packages/phppkg-config)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
