Download the PHP package salehhashemi/laravel-intelli-db without Composer

On this page you can find all versions of the php package salehhashemi/laravel-intelli-db. 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 laravel-intelli-db

# Laravel IntelliDB [![Latest Version on Packagist](https://img.shields.io/packagist/v/salehhashemi/laravel-intelli-db.svg?style=flat-square)](https://packagist.org/packages/salehhashemi/laravel-intelli-db) [![Total Downloads](https://img.shields.io/packagist/dt/salehhashemi/laravel-intelli-db.svg?style=flat-square)](https://packagist.org/packages/salehhashemi/laravel-intelli-db) [![GitHub Actions](https://img.shields.io/github/actions/workflow/status/salehhashemi1992/laravel-intelli-db/tests.yml?branch=main&label=tests)](https://github.com/salehhashemi1992/laravel-intelli-db/actions/workflows/tests.yml) [![GitHub Actions](https://img.shields.io/github/actions/workflow/status/salehhashemi1992/laravel-intelli-db/static-analysis.yml?branch=main&label=static-analysis)](https://github.com/salehhashemi1992/laravel-intelli-db/actions/workflows/static-analysis.yml) [![PHPStan](https://img.shields.io/badge/PHPStan-level%208-brightgreen.svg?style=flat)](https://phpstan.org/)

A Laravel package that provides an intelligent way to generate database-related components using OpenAI.

It extends the default artisan make commands in Laravel to automatically generate the content of each component using AI, based on the provided description.

Features

The following commands are implemented in this package:

Stay tuned for future updates as we continue to expand the capabilities of the Laravel Intelli DB package.

Installation

  1. Install the package via composer:

  2. Publish the configuration file:

  3. Add your OpenAI API key to the .env file:

  4. Optionally, you can change the default model used by OpenAI in the .env file:

To adjust the behavior of the AI text generation, you can set the following parameters in your configuration file:

Usage

ai:rule

To create a new validation rule using AI, run the following command:

You can provide the description of the rule using the --description option:

If you don't provide a description, it will ask for it interactively.

The generated rule class will be placed in the app/Rules directory.

ai:migration

To create a new migration file using AI, run the following command:

You can provide the description of the migration using the --description option:

You can also specify the table name for the migration with the --table option:

This will append the schema of the desired table to provide a better result.

And you can set the location where the migration file should be created using the --path option:

If you don't provide a description, it will ask for it interactively.

The generated migration file will be placed in the database/migrations directory or the specified path.

ai:factory

To create a new factory file using AI, run the following command:

You can provide the name of the model for which the factory will be created using the --model option:

If you don't provide the model, it will ask for it interactively.

The generated factory file will be placed in the database/factories directory.

ai:model

To create a new model file using AI, run the following command:

The generated model file will be placed in the app/Models directory.

The generated model will include PHP DocBlock comments for properties, relationships, and methods with appropriate type hints.

Examples

ai:rule

To create a rule that validates a unique email address, run:

ai:migration

To create a migration that adds an email column to the users table, run:

ai:factory

To create a factory for the User model, run:

ai:model

To create a model named Address, run:

Testing

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-intelli-db with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^9.0|^10.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 salehhashemi/laravel-intelli-db contains the following files

Loading the files please wait ....