PHPackages                             webbingbrasil/filament-copyactions - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. webbingbrasil/filament-copyactions

ActiveLibrary[Admin Panels](/categories/admin)

webbingbrasil/filament-copyactions
==================================

A easy-to-use copy actions for Filament Admin.

4.0.2(7mo ago)94659.1k↓29%29[2 issues](https://github.com/webbingbrasil/filament-copyactions/issues)MITPHPPHP ^8.2

Since Sep 8Pushed 1mo ago5 watchersCompare

[ Source](https://github.com/webbingbrasil/filament-copyactions)[ Packagist](https://packagist.org/packages/webbingbrasil/filament-copyactions)[ Docs](https://github.com/webbingbrasil/filament-copyactions)[ RSS](/packages/webbingbrasil-filament-copyactions/feed)WikiDiscussions 5.x Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (16)Used By (0)

Filament Copy Actions
=====================

[](#filament-copy-actions)

An easy-to-use copy actions for Filament Admin

Features
--------

[](#features)

- Table action to implement dynamic copy content
- Form action to use with any field
- Page action to implement a dynamic copy button on any page
- Custom copy table column to simply copy text content

> **Note**The copy will only work if the user browser supports [Clipboard API](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API). Also, the user must be on a secure context (HTTPS) or localhost.

Installation
------------

[](#installation)

Use the [Filament compatibility](#filament-compatibility) table to choose the right version constraint for your app.

```
composer require webbingbrasil/filament-copyactions
```

### Filament compatibility

[](#filament-compatibility)

Pick the plugin version that match your Filament major version.

VersionFilament (`filament/filament`)PHP`^5.0``^5.0``^8.2``^4.0``^4.0``^8.2``^3.0``^3.0``^8.0``^2.0``^2.16``^8.0``^1.0``^2.15``^8.0`Usage
-----

[](#usage)

### Table Column

[](#table-column)

Display a table text column with a copy button. The column has all features of the [TextColumn](https://filamentphp.com/docs/4.x/tables/columns/text) and the copy action sends column content to the clipboard and displays a success tooltip.

> **Note**Since Filament v3, there is a native feature to copy column content to clipboard (see [documentation](https://filamentphp.com/docs/4.x/tables/columns/text#allowing-the-text-to-be-copied-to-the-clipboard)). This custom column is maintained for compatibility and as a shortcut to implement copy functionality.

```
use Webbingbrasil\FilamentCopyActions\Tables\CopyableTextColumn;

CopyableTextColumn::make('brand.name')
    ->copyMessage('Brand copied to clipboard')
    ->searchable()
    ->sortable()
    ->toggleable()
```

The column has an option to display a description above or below the text, by default this description is not copied, if you want to copy the description too, use the `copyWithDescription` method.

#### Success message

[](#success-message)

You can customize the success message with the `copyMessage` method, the default message is `Copied!`.

#### Icon Position and Color

[](#icon-position-and-color)

You can customize the icon with the `icon`, `iconPosition` and `iconColor` methods.

Using the CopyAction
--------------------

[](#using-the-copyaction)

The package provides a single action class `Webbingbrasil\FilamentCopyActions\Actions\CopyAction` that can be used across different contexts in your Filament application:

- As a Page Action to add copy functionality to any page
- As a Table Action to copy data from table records
- As a Form Action to copy field values (algo in Placeholder)
- InfoList, TextEntry, Entry...

This unified approach simplifies usage while maintaining consistent behavior across your application. The action inherits all customization options from Filament's base Action class.

> **Important**The value set in `copyable()` is evaluated and stored in the HTML element's `data-copyable` attribute. For complex data, you must ensure the value is properly converted to a string and escaped, as unescaped values can break the page. For form fields, by default the copy function will use the field's state.

### Table Action

[](#table-action)

Display a table action button, you set the content using the `copyable` method. You can customize the button icon/color using the same methods of the [Filament Action](https://filamentphp.com/docs/2.x/tables/actions#setting-a-color).

```
use Webbingbrasil\FilamentCopyActions\Actions\CopyAction;

$table
    ->actions([
        CopyAction::make()->copyable(fn ($record) => $record->name),
    ])
```

#### Success message

[](#success-message-1)

The action will display a copy status, you can customize the success message with the `successNotificationMessage` method or the error message with the `errorNotificationMessage` method.

### Form Action

[](#form-action)

Use the `CopyAction` in your field suffix or prefix if you want to copy a field value. You can customize the button icon/color using the same methods of the [Filament Action](https://filamentphp.com/docs/2.x/tables/actions#setting-a-color).

```
use Webbingbrasil\FilamentCopyActions\Actions\CopyAction;

Forms\Components\TextInput::make('sku')
    ->label('SKU (Stock Keeping Unit)')
    ->suffixAction(CopyAction::make())
    ->required();

Forms\Components\Select::make('shop_brand_id')
    ->relationship('brand', 'name')
    ->prefixAction(CopyAction::make())
    ->searchable();
```

You can use this form action in any filament field, the action will copy the field value to the clipboard by default, but you can customize the value with the `copyable` method.

```
use Webbingbrasil\FilamentCopyActions\Actions\CopyAction;

Forms\Components\Select::make('shop_brand_id')
    ->relationship('brand', 'name')
    ->prefixAction(CopyAction::make()->copyable(fn ($component) => $component->getOptionLabel()))
    ->searchable();
```

#### Success message

[](#success-message-2)

The action will display a copy status, you can customize the success message with the `successNotificationMessage` method or the error message with the `errorNotificationMessage` method.

### Page Action

[](#page-action)

You can add `CopyAction` button to any page in filament, just put the action in the `actions` method of the page. You can customize the button icon/color using the same methods of the [Filament Action](https://filamentphp.com/docs/2.x/tables/actions#setting-a-color).

```
use Webbingbrasil\FilamentCopyActions\Pages\Actions\CopyAction;

protected function getActions(): array
{
    return [
        CopyAction::make()->copyable(fn () => $this->record->name),
    ];
}
```

The action will display a copy status, you can customize the success message with the `successNotificationMessage` method or the error message with the `errorNotificationMessage` method.

### CopyAction Tip

[](#copyaction-tip)

By default, CopyAction does not trigger a livewire request, so it only returns the value defined in the copyable method during page rendering.

However, if it is necessary for the copied value to be dynamic at each action trigger, you can use the `action()` method.

```
CopyAction::make()->copyable(fn () => $this->voucher)->action(fn() => $this->generateVoucher()),
```

You can use this technique in actions for form, pages, or tables.

Credits
-------

[](#credits)

- [Danilo Andrade](https://github.com/dmandrade)

###  Health Score

59

—

FairBetter than 99% of packages

Maintenance78

Regular maintenance activity

Popularity54

Moderate usage in the ecosystem

Community21

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 87.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~79 days

Recently: every ~7 days

Total

15

Last Release

235d ago

Major Versions

1.1.2 → 2.0.02024-01-17

2.x-dev → 3.0.02024-01-17

3.0.1 → 4.0.02025-08-26

3.0.2 → 4.0.22025-09-25

PHP version history (2 changes)1.0.0PHP ^8.0

4.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/46c152ad4f73337f281add1d284040cf3ce36c8e16987c4668cc213f2bb90826?d=identicon)[dmandrade](/maintainers/dmandrade)

---

Top Contributors

[![dmandrade](https://avatars.githubusercontent.com/u/7275012?v=4)](https://github.com/dmandrade "dmandrade (64 commits)")[![zhanang19](https://avatars.githubusercontent.com/u/19884603?v=4)](https://github.com/zhanang19 "zhanang19 (3 commits)")[![Stichoza](https://avatars.githubusercontent.com/u/1139050?v=4)](https://github.com/Stichoza "Stichoza (2 commits)")[![williamengbjerg](https://avatars.githubusercontent.com/u/54719?v=4)](https://github.com/williamengbjerg "williamengbjerg (1 commits)")[![pau1phi11ips](https://avatars.githubusercontent.com/u/677264?v=4)](https://github.com/pau1phi11ips "pau1phi11ips (1 commits)")[![devmatheus](https://avatars.githubusercontent.com/u/3445672?v=4)](https://github.com/devmatheus "devmatheus (1 commits)")[![Abdulmajeed-Jamaan](https://avatars.githubusercontent.com/u/41128358?v=4)](https://github.com/Abdulmajeed-Jamaan "Abdulmajeed-Jamaan (1 commits)")

---

Tags

laravelfilament

### Embed Badge

![Health badge](/badges/webbingbrasil-filament-copyactions/health.svg)

```
[![Health](https://phpackages.com/badges/webbingbrasil-filament-copyactions/health.svg)](https://phpackages.com/packages/webbingbrasil-filament-copyactions)
```

###  Alternatives

[awcodes/filament-quick-create

Plugin for Filament Admin that adds a dropdown menu to the header to quickly create new items.

246177.6k7](/packages/awcodes-filament-quick-create)[inerba/filament-db-config

A Filament plugin for database-backed application settings and editable content, with caching and easy page generation.

329.1k](/packages/inerba-filament-db-config)[openplain/filament-tree-view

Tree view for Filament resources - drop-in replacement for Table with drag-and-drop hierarchical data management

318.5k](/packages/openplain-filament-tree-view)[caresome/filament-neobrutalism-theme

A neobrutalism theme for FilamentPHP admin panels

303.2k](/packages/caresome-filament-neobrutalism-theme)[andreia/filament-ui-switcher

Add a modal with options to switch between different UI layouts and styles (colors, fonts, font sizes).

233.8k](/packages/andreia-filament-ui-switcher)[craft-forge/filament-language-switcher

Zero-config language switcher for Filament admin panels. Automatically scans available translations, renders dropdown with country flags, persists selection via sessions.

1016.4k](/packages/craft-forge-filament-language-switcher)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
