Skip to content

zerofyi/laracontext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

LaraContext πŸš€

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.

About

πŸš€ A high-density architectural context blueprint compiler for Laravel applications built for AI models and LLMs.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages