laravel-llm-context maintained by jeremysalmon
Description
Generate LLM context from Laravel applications
Author
Last update
2024/11/11 17:31
(dev-main)
License
Downloads
21
README.md
Laravel LLM Context Generator
Generate comprehensive context about your Laravel application for LLM consumption.
Installation
composer require your-username/laravel-llm-context
Usage
-
(Optional) Publish the configuration:
php artisan vendor:publish --tag="llm-context-config" -
Generate the context:
php artisan llm:generate-context
This will create two files in your storage/app/llm-context directory:
- llm-context.json: Structured data about your application
- llm-context.txt: Human-readable format suitable for LLM consumption
Configuration
You can customize the behavior by modifying config/llm-context.php:
return [
'output_path' => storage_path('app/llm-context'),
'include' => [
'migrations' => true,
'models' => true,
'relationships' => true,
],
'model_path' => app_path('Models'),
];