innoraft/ai-readme-generator
Composer 安装命令:
composer require innoraft/ai-readme-generator
包简介
This package will generate a Readme.md file according to your codebase.
README 文档
README
Innoraft Readme Generator is a command-line PHP utility that generates a Drupal-style README.md file for any Drupal module or PHP codebase using AI. It scans the provided module, extracts structured metadata, and produces a high-quality, standardized README automatically.
🚀 Features
- Generates a
README.mdfile in the module folder - Supports
.env-based configuration for flexible local/remote AI services - Can be executed from both the project root and within module folders
🧰 Requirements
- PHP 8.1 or higher
- Composer
- API key and endpoint for AI summarization (e.g., GroqCloud/OpenAI)
📦 Installation
Run this from the root of your Drupal project:
composer require innoraft/readme-generator --dev
⚙️ Setup
Copy the example environment file and update it with your actual credentials.
✅ Usage
📍 From Project Root
vendor/bin/readme-generator web/modules/contrib/MODULE_NAME
This command scans the specified module and writes README.md inside it.
📂 Output
After running the command, you'll get a README.md file with:
- Module name
- Description
- Key features and functionality
- Dependency info
- Usage instructions (if derivable)
- Auto-generated AI summary
🤖 Behind the Scenes
- Codebase is scanned and structured data is extracted.
- Data is sent to an AI service configured via
.env. - AI returns a formatted README, which is saved in your module folder.
🛠 Development Notes
- If you are using this inside a Drupal module or sub-directory, ensure paths are resolved correctly.
- The binary path is defined in the
composer.jsonunder"bin": ["bin/readme-generator"].
📬 Contributing
Found a bug or want to enhance it? Feel free to open issues or submit PRs!
🧑💻 Authors
📄 License
MIT License
innoraft/ai-readme-generator 适用场景与选型建议
innoraft/ai-readme-generator 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5.63k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 04 月 28 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 innoraft/ai-readme-generator 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 innoraft/ai-readme-generator 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 5.63k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-04-28