定制 tomatophp/filament-translation-component 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

tomatophp/filament-translation-component

最新稳定版本:v4.0.1

Composer 安装命令:

composer require tomatophp/filament-translation-component

包简介

Translation Component as a key/value to use it with Spatie Translatable FilamentPHP Plugin

README 文档

README

Cover

Filament Translation Component

Dependabot Updates PHP Code Styling Tests Latest Stable Version PHP Version Require License Downloads

Translation Component as a key/value to use it with Spatie Translatable FilamentPHP Plugin

Screenshots

Light Textarea Dark Textarea Light Input Dark Input

Installation

composer require tomatophp/filament-translation-component

Using

you can use the component on your form like this

use \TomatoPHP\FilamentTranslationComponent\Components\Translation;

Translation::make('title')
    ->label('Title')

you can change the language from the config file.

Convert input to textarea

use \TomatoPHP\FilamentTranslationComponent\Components\Translation;

Translation::make('title')
    ->label('Title')
    ->textarea()

Publish Assets

you can publish config file by use this command

php artisan vendor:publish --tag="filament-translation-component-config"

you can publish languages file by use this command

php artisan vendor:publish --tag="filament-translation-component-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

统计信息

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

GitHub 信息

  • Stars: 5
  • Watchers: 2
  • Forks: 5
  • 开发语言: PHP

其他信息

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