{"id":23842375,"url":"https://github.com/php-toolkit/file-parse","last_synced_at":"2025-09-07T18:32:00.885Z","repository":{"id":57071734,"uuid":"119857136","full_name":"php-toolkit/file-parse","owner":"php-toolkit","description":"Some file parse utils for php","archived":false,"fork":false,"pushed_at":"2019-06-24T14:27:58.000Z","size":16,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-11T11:50:37.160Z","etag":null,"topics":["parse","parse-utils","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/php-toolkit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-01T15:49:22.000Z","updated_at":"2023-05-21T12:37:56.000Z","dependencies_parsed_at":"2022-08-24T14:54:31.942Z","dependency_job_id":null,"html_url":"https://github.com/php-toolkit/file-parse","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-toolkit%2Ffile-parse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-toolkit%2Ffile-parse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-toolkit%2Ffile-parse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-toolkit%2Ffile-parse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php-toolkit","download_url":"https://codeload.github.com/php-toolkit/file-parse/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232240700,"owners_count":18493527,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["parse","parse-utils","php"],"created_at":"2025-01-02T18:38:21.038Z","updated_at":"2025-01-02T18:38:21.681Z","avatar_url":"https://github.com/php-toolkit.png","language":"PHP","readme":"# file parse\n\n[![License](https://img.shields.io/packagist/l/toolkit/file-parse.svg?style=flat-square)](LICENSE)\n[![Php Version](https://img.shields.io/badge/php-%3E=7.1.0-brightgreen.svg?maxAge=2592000)](https://packagist.org/packages/toolkit/file-parse)\n[![Latest Stable Version](http://img.shields.io/packagist/v/toolkit/file-parse.svg)](https://packagist.org/packages/toolkit/file-parse)\n\nSome useful file parse utils for the php.\n\n`ini`, `json`, `yml` 格式的文件解析\n\n- json 文件支持去除注释，即是有注释不会导致解析失败\n- 支持特殊关键字 \n  - `extend` 继承另一个文件的内容\n  - `import` 导入另一个文件的内容\n  - `reference` 参考另一个key的值 **todo**\n\n例如在 yml 文件(其他格式的文件类似)可以这样：\n\n```text\n// will parse special keywords\nextend: ../parent.yml\ndebug: true\ndb: import#../db.yml\ncache:\n  debug: reference#debug\n```\n\n## Install\n\n```bash\ncomposer require toolkit/file-parse\n```\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-toolkit%2Ffile-parse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp-toolkit%2Ffile-parse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-toolkit%2Ffile-parse/lists"}