laravel-synth  by blinq-dev

Laravel tool for generating code via ChatGPT

Created 2 years ago
281 stars

Top 92.7% on SourcePulse

GitHubView on GitHub
Project Summary

Synth is a Laravel package that integrates OpenAI's GPT models to automate code generation and development tasks. It targets Laravel developers seeking to accelerate their workflow by leveraging AI for tasks like generating migrations, models, and application architectures.

How It Works

Synth utilizes OpenAI's Chat Completions API, including its functions API for structured interactions. It can automatically switch between GPT-3.5-turbo and GPT-3.5-turbo-16k models based on context size needs. The tool includes the entire database schema as an attachment to provide GPT with comprehensive application context, enabling more accurate code generation.

Quick Start & Requirements

  • Install via Composer: composer require blinq/synth
  • Publish config: php artisan vendor:publish --tag=synth-config
  • Set OPENAI_KEY in .env.
  • Run CLI: php artisan synth
  • Requires PHP and an OpenAI API key.

Highlighted Details

  • Interactive CLI for code generation and task execution.
  • Supports generating migrations, models, and application architectures.
  • Allows attaching files and custom modules for extensibility.
  • Leverages OpenAI's functions API for structured AI responses.

Maintenance & Community

The project is maintained by blinq-dev. Further community or roadmap information is not detailed in the README.

Licensing & Compatibility

The README does not specify a license. Compatibility for commercial use or closed-source linking is not detailed.

Limitations & Caveats

The project is described as "Not an official Laravel package." The README does not detail specific limitations, known bugs, or deprecation status.

Health Check
Last Commit

1 year ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
1 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.