Download the PHP package blinq/synth without Composer

On this page you can find all versions of the php package blinq/synth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package synth

Synth for Laravel

(Not an official Laravel package)

Synth for Laravel

Synth is a Laravel tool that helps you generate code and perform various tasks in your Laravel application. It leverages the power of OpenAI's GPT language model to provide an interactive and intelligent development experience.

Demo

Architect -> create a todo app 😎🏗️📝

https://github.com/blinq-dev/laravel-synth/assets/168357/78116a9a-1f37-4410-9f20-f9fe6573196b

Attach files and create a readme.md 📎📄✍️

https://github.com/blinq-dev/laravel-synth/assets/168357/70bc57a5-0aa8-439f-95af-fb02685e3756

Installation

  1. Install the Synth package using Composer:

  2. Publish the Synth configuration file:

    Here you can change the used model (gpt4 versus gpt3)

  3. Set your OpenAI API key in the .env file:

Usage

To use Synth, simply run the synth command:

This will open the Synth CLI, where you can interact with the GPT model and perform various tasks.

Features 🌟

You can select a module from the main menu and follow the prompts to perform the desired actions.

Note: Some modules require a previous step to be completed, such as creating an architecture before generating migrations or models.

Writing Your Own Modules

Synth allows you to extend its functionality by writing your own modules. A module is a class that implements the necessary methods to register and handle specific actions.

To create a new module, follow these steps:

  1. Create a new PHP class that extends the Module class.
  2. Implement the name method to define the name of your module.
  3. Implement the register method to define the actions provided by your module.
  4. Implement the onSelect method to handle the selected action.

Here is an example of a custom module implementation:

You can then register your custom module in the Modules class within the Synth package and use it in the CLI interface:


All versions of synth with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
blinq/openai Version ^1.0.3
spatie/laravel-package-tools Version ^1.14.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package blinq/synth contains the following files

Loading the files please wait ....