daikazu/filament-copy 问题修复 & 功能扩展

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

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

daikazu/filament-copy

最新稳定版本:v0.0.1-beta

Composer 安装命令:

composer require daikazu/filament-copy

包简介

Simple copy to clipboard button for Filament PHP

README 文档

README

A simple copy to clipboard button component for Filament PHP applications.

Latest Version on Packagist Total Downloads License

Requirements

  • PHP 8.3 or higher
  • Laravel 10.x or higher
  • Filament 3.x

Installation

You can install the package via composer:

composer require daikazu/filament-copy

Usage

The package provides a simple copy to clipboard button that can be used in your Filament forms and tables.

Basic Usage

use Daikazu\FilamentCopy\Components\CopyButton;

// In your Filament form or table
CopyButton::make('copy_button')
    ->content('Text to copy')
    ->label('Copy to Clipboard');

Advanced Usage

use Daikazu\FilamentCopy\Components\CopyButton;

CopyButton::make('copy_button')
    ->content(fn ($record) => $record->email)
    ->label('Copy Email')
    ->icon('heroicon-o-clipboard')
    ->color('success')
    ->size('sm')
    ->tooltip('Click to copy email address');

Features

  • Simple and intuitive API
  • Customizable button appearance
  • Support for dynamic content
  • Tooltip support
  • Icon customization
  • Size variants
  • Color variants

Configuration

The package is designed to work out of the box, but you can publish the configuration file if you need to customize the default settings:

php artisan vendor:publish --tag="filament-copy-config"

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email daikazu@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

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