jeremysalmon / laravel-llm-context
Generate LLM context from Laravel applications
1.0.6
2024-11-11 16:31 UTC
Requires
- php: ^7.4|^8.0|^8.1|^8.2
- illuminate/console: ^8.0|^9.0|^10.0|^11.0
- illuminate/filesystem: ^8.0|^9.0|^10.0|^11.0
- illuminate/support: ^8.0|^9.0|^10.0|^11.0
README
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'), ];