iamserjo / php-gpt-context-generator
Helps to create prompt context of your project according to chosen tables and files
Installs: 782
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:command
Requires
- php: ^8.1 || ^8.2 || ^8.3 || ^8.4
- laravel/framework: ^9.0 || ^10.0 || ^11.0
- laravel/prompts: ^0.3
This package is auto-updated.
Last update: 2025-04-24 13:54:33 UTC
README
Create prompt context of your project according to chosen tables and files
Installation
composer require --dev iamserjo/php-gpt-context-generator
Run
php artisan _dev:gpt-project-context-generator
Short Documentation
- This Laravel command generates a single prompt file with the selected database tables’ schema and chosen project files.
- It helps provide GPT models with relevant context for coding tasks, speeding up development.
- Installation is simple: run
composer require --dev iamserjo/php-gpt-context-generator
. - Use
php artisan _dev:gpt-project-context-generator
to launch the interactive console. - First, select an existing setup or create a new one.
- Next, choose tables to include, then pick files by typing partial filenames.
- The command creates a timestamped .txt file in storage/app/gpt-context-generator.
- This file contains your database schema, file contents, and a brief prompt.
- Reuse or edit previous setups by loading from history.
- Leverage the generated context file as input to GPT tools for better code suggestions.