baad777/codeingestor
Composer 安装命令:
composer require baad777/codeingestor
包简介
Parse PHP projects into structured text files for LLM ingestion.
README 文档
README
CodeIngestor is a library designed to parse PHP projects into structured text files for large language model (LLM) ingestion. This tool helps in extracting important information from your codebase and making it easily accessible for analysis, documentation generation, or other computational tasks.
Features
- Parse PHP Projects: Extracts relevant information from PHP project files.
- Structured Text Output: Generates structured text files that can be used as input for LLMs.
- Configurable Source Path: Allows you to specify the directory of your PHP project.
- Ignore Directories and Files: Option to exclude certain directories and files from processing.
Installation
You can install CodeIngestor via Composer:
composer require baad777/codeingestor --dev
Or you can install it globally
composer global require baad777/codeingestor
Usage
Configuration
Optional: init a default configuration file with the command:
./vendor/bin/codeingestor --init
OR:
Create a configuration file named codeingestor.yaml in the root of your project with the following structure(example):
# Default configuration sourcePath: "./" # Folder to scan outputFile: "codeingestor_output.txt" # Output file ignoreDirs: # Directories to skip - vendor - node_modules - .git ignoreFiles: # Files to skip - .env - .gitignore - "*.lock"
source: The directory path of your PHP project.output: The file path where the structured text output will be saved.ignore_dirs: A list of directories to ignore during the parsing process.
Command Line Interface
CodeIngestor comes with a command line interface (CLI) tool. You can run it using the following command:
./vendor/bin/codeingestor /path/to/folder
This command will execute the parser and generate the structured text output based on your configuration.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
CodeIngestor is licensed under the MIT License.
Contact
If you have any questions or need further assistance, feel free to reach out at adrian@bancu.ro.
This README provides a basic overview of CodeIngestor. For more detailed information, please refer to the code documentation and example configurations available in the repository.
baad777/codeingestor 适用场景与选型建议
baad777/codeingestor 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 19 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 03 月 02 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 baad777/codeingestor 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 baad777/codeingestor 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 20
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-03-02