tomatophp/filament-translations-gpt 问题修复 & 功能扩展

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

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

tomatophp/filament-translations-gpt

最新稳定版本:v4.0.0

Composer 安装命令:

composer require tomatophp/filament-translations-gpt

包简介

Translations Manager extension to use ChatGPT openAI to auto translate your __(), trans() fn

README 文档

README

Screenshot

Filament Translations GPT

Dependabot Updates PHP Code Styling Tests Latest Stable Version License Downloads

Translations Manager extension to use ChatGPT openAI to auto translate your __(), trans() fn

Screenshots

GPT Action GPT Modal

Installation

before install this package you need to have Translation Manager installed and configured

composer require tomatophp/filament-translations-gpt

after install your package please run this command

php artisan filament-translations-gpt:install

finally register the plugin on /app/Providers/Filament/AdminPanelProvider.php

->plugin(\TomatoPHP\FilamentTranslationsGpt\FilamentTranslationsGptPlugin::make())

Usage

now you need to add the following to your .env file:

OPENAI_API_KEY=
OPENAI_ORGANIZATION=

now you need to clear you cache

php artisan config:clear

Publish Assets

you can publish config file by use this command

php artisan vendor:publish --tag="filament-translations-gpt-config"

you can publish languages file by use this command

php artisan vendor:publish --tag="filament-translations-gpt-lang"

Testing

if you like to run PEST testing just use this command

composer test

Code Style

if you like to fix the code style just use this command

composer format

PHPStan

if you like to check the code by PHPStan just use this command

composer analyse

Other Filament Packages

Checkout our Awesome TomatoPHP

统计信息

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

GitHub 信息

  • Stars: 28
  • Watchers: 1
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-10-26