承接 molbal/ai-phpdoc 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

molbal/ai-phpdoc

最新稳定版本:1.0.8

Composer 安装命令:

composer require molbal/ai-phpdoc

包简介

Writes missing PHPDoc comments using GPT-3.

README 文档

README

Code example

Total Downloads Latest Version License

Cute icon. You like it! AI PHPDocs

AI PHPDocs is a tool that uses GPT-3 to automatically add missing PHPDoc comments to your PHP code.

Demo video: https://youtu.be/bu-fkRyLQaI

Example output: https://github.com/molbal/abyss-tracker/commit/e4013c7533aa7ca855176ddce9f3563a011cdc0f

Prerequisites

This package uses the OpenAI API. Before using AI PHPDocs, you will need to have an OpenAI API key set as an environment variable.

export OPENAI_KEY=...

You can get an API key at https://beta.openai.com/account/api-keys

Installation

To install AI PHPDocs, run the following command:

composer global require molbal/ai-phpdoc

Usage

To add missing PHPDoc comments to a single file, use the following command:

aiphpdocs file  /path/to/file.php

To add missing PHPDoc comments to a directory of files, use the following command. By default it iterates through the current directory for all files, but does not go into subdirectories:

aiphpdocs dir

You may set the --recursive flag, or -r for short for it to go into subdirectories.

If you pass another variable (regardless of the recursive flag) it will treat it as another directory to sweep through instead of the working directory.

aiphpdocs dir -r /somewhere/else

License

AI PHPDocs is licensed under the AGPL-3.0 license. See LICENSE for more information.

统计信息

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

GitHub 信息

  • Stars: 19
  • Watchers: 1
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: AGPL-3.0-or-later
  • 更新时间: 2023-01-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固