zerofyi/laracontext 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

zerofyi/laracontext

Composer 安装命令:

composer require zerofyi/laracontext

包简介

Generate high-density architectural context maps of Laravel applications for AI models.

README 文档

README

Latest Version on Packagist Total Downloads Software License PHP Version Support

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 FormRequest validation 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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固