laraxot/laravel-auto-dev 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

laraxot/laravel-auto-dev

Composer 安装命令:

composer require laraxot/laravel-auto-dev

包简介

Automate Laravel development with AI-driven code generation and PHPDoc support

README 文档

README

Description

This Laravel package, laraxot/laravel-auto-dev, provides an Artisan command make:code, which automates code generation for specific development tasks. It interacts with external APIs to fetch the necessary data and supports options for making tests and Filament resources.

Install the Server

Before installing the Laravel package, set up the necessary server which hosts the endpoint for code generation. The server can be found and installed from the following repository:

laravel-auto-dev-server

After setting up the server, proceed with the installation of the Laravel package.

Package Installation

Install the package using Composer:

composer require laraxot/laravel-auto-dev

After installation, you can publish and configure the necessary files:

php artisan vendor:publish --provider="Laraxot\AutoDev\AutoDevServiceProvider"

Optional Configurations

Set the required variables in your .env file:

API_URL=http://localhost:3000/generate
API_BASE_DIR=/specify/root/folder

Update the configuration file config/make_code.php with:

return [
    'url' => env('MAKE_CODE_URL'),
];

Usage

To execute the make:code command, use:

php artisan make:code "Write the task here" [--test] [--filament]

Options

--test: Runs the command in test mode (optional).
--filament: Uses the Filament library (optional).

Testing

Run the integrated tests with:

php artisan test

Contributing

Contributions to the project are welcome! Submit a pull request with your changes or open an issue to discuss modifications or additions.

License

This project is released under the GPL3.0 License.

统计信息

  • 总下载量: 26
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2024-05-06