zerofyi/laracontext
Composer 安装命令:
composer require zerofyi/laracontext
包简介
Generate high-density architectural context maps of Laravel applications for AI models.
README 文档
README
LaraContext is a high-density architectural blueprint compiler engineered specifically for Laravel applications.
Instead of dumping raw repositories into LLM windows and blowing past token limits, LaraContext parses live framework structures in memory via Reflection engines to provide AI assistants with maximum architectural insight for minimum token consumption.
🔥 Key Features
- Dynamic Schema Inspection: Sniffs database drivers natively to list tables, field sets, and casting data types instantly without crashing on unmigrated structures.
- Deep Reflection Extraction: Traverses Eloquent models dynamically to map public relationship graphs (
hasMany,belongsTo, etc.). - Automated Validation Injections: Maps controller action definitions to resolve injected
FormRequestvalidation rules, creating field-level request documentation for the AI. - Fail-Safe Containment: Gracefully falls back past unresolvable bindings or custom parameters, continuing the blueprint without killing the run.
💾 Installation
composer require zerofyi/laracontext
The package relies on Laravel's standard auto-discovery protocols out of the box.
🚀 Usage
Compile the application's context blueprint:
php artisan context:generate
This generates a high-density, structured Markdown profile named ai-context.md right in the root working directory of your host application.
| Flag | Description |
|---|---|
--output=custom.md |
Overrides the default file name and target destination path. |
--no-routes |
Bypasses endpoint mapping loops to ensure maximum token space containment. |
📄 License
The MIT License (MIT). Please see the License File for more details.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-06-20