martink/laravel-devcopilot 问题修复 & 功能扩展

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

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

martink/laravel-devcopilot

最新稳定版本:v1.4.1

Composer 安装命令:

composer require martink/laravel-devcopilot

包简介

Laravel package that integrates ChatGPT into your Artisan CLI

README 文档

README

DevCopilot is a Laravel package that integrates ChatGPT directly into your Artisan CLI, giving you an intelligent assistant for explaining code, generating ideas, and streamlining development tasks—all without leaving your terminal.

Packagist Version Packagist Downloads MIT License

🚀 Features

  • 🤖 Ask ChatGPT questions directly from your Laravel project
  • 🗂️ Include file contents as context using --file
  • 🧠 Laravel-specific assistant for routes, controllers, migrations, and more

📦 Installation

  1. Require the package via Composer (after it's published to Packagist):
composer require martink/laravel-devcopilot
  1. Publish the config file:
php artisan vendor:publish --tag=config
  1. Set your OpenAI API key in .env:
OPENAI_API_KEY=your-api-key-here

💡 Usage

Ask ChatGPT anything:

php artisan gpt:ask "Explain what the middleware 'auth' does in Laravel"

Include a file for deeper context:

php artisan gpt:ask "Explain this file" --file=routes/web.php

⚙️ Configuration

Published config file: config/devcopilot.php

return [
    'api_key' => env('OPENAI_API_KEY'),
];

🧪 Coming Soon

Multiple file support

  • Context profiles (review, generate, explain)

  • Answer caching

  • Chat history log

🧑‍💻 Author

Made with ❤️ by Martin Karadzinov

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-05-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固