PHPackages                             axonc/filament-copyable-placeholder - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. axonc/filament-copyable-placeholder

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

axonc/filament-copyable-placeholder
===================================

This is my package filament-copyable-placeholder

v0.3.0(2y ago)414.1k↑33.3%1[1 issues](https://github.com/AxonC/filament-copyable-placeholder/issues)[2 PRs](https://github.com/AxonC/filament-copyable-placeholder/pulls)MITPHPPHP ^8.1

Since Jul 8Pushed 2y ago1 watchersCompare

[ Source](https://github.com/AxonC/filament-copyable-placeholder)[ Packagist](https://packagist.org/packages/axonc/filament-copyable-placeholder)[ Docs](https://github.com/axonc/filament-copyable-placeholder)[ RSS](/packages/axonc-filament-copyable-placeholder/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (12)Versions (8)Used By (0)

filament-copyable-placeholder
=============================

[](#filament-copyable-placeholder)

[![Latest Version on Packagist](https://camo.githubusercontent.com/113edc31b1003a337ce72cdf8b6874994ade7af9df2b037e54197f694e0e9eae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61786f6e632f66696c616d656e742d636f707961626c652d706c616365686f6c6465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/axonc/filament-copyable-placeholder)[![GitHub Tests Action Status](https://camo.githubusercontent.com/5f6b50ef3b86348af24672ad391b59de387dda7e777ee1b45bbe66ed9eddde4b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f61786f6e632f66696c616d656e742d636f707961626c652d706c616365686f6c6465722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/axonc/filament-copyable-placeholder/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/e20e912af458bdfcf1b78966ad7d717ab626a3ca493ffcc92faf735f9a7adb0b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f61786f6e632f66696c616d656e742d636f707961626c652d706c616365686f6c6465722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/axonc/filament-copyable-placeholder/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/8863d1b517be728a3f9ce18101babd32a48c75e3f287d7ce2522a7a242de1484/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61786f6e632f66696c616d656e742d636f707961626c652d706c616365686f6c6465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/axonc/filament-copyable-placeholder)

This package provides a form field for the [Laravel Filament](https://filamentphp.com/) Admin panel framework which adds a copy button to the [Placeholder](https://filamentphp.com/docs/2.x/forms/layout#placeholder)

### Examples

[](#examples)

### Copy Button

[](#copy-button)

[![](images/button_example.png)](images/button_example.png)

#### Icon Only

[](#icon-only)

[![](images/basic_example.png)](images/basic_example.png)

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

[](#installation)

You can install the package via composer:

```
composer require axonc/filament-copyable-placeholder
```

Usage
-----

[](#usage)

All functionality mirrors the documentation found [here](https://filamentphp.com/docs/2.x/forms/layout#placeholder) for the `Placeholder` component. Additional functionality specific to this package can be found below.

The copy behavior will take the value of the contents passed to the component and write to the clipboard via JavaScript. NOTE: This must support the `window.navigator` API.

### Basic Usage

[](#basic-usage)

```
use AxonC\FilamentCopyablePlaceholder\Forms\Components\CopyablePlaceholder;

CopyablePlaceholder::make('response')
    ->content("Placeholder Content")
```

### Custom Icon Text

[](#custom-icon-text)

```
use AxonC\FilamentCopyablePlaceholder\Forms\Components\CopyablePlaceholder;

CopyablePlaceholder::make('response')
    ->content("Placeholder Content")
    ->buttonText("Kopieren")
```

### Icon Only Mode

[](#icon-only-mode)

```
use AxonC\FilamentCopyablePlaceholder\Forms\Components\CopyablePlaceholder;

CopyablePlaceholder::make('response')
    ->content("Placeholder Content")
    ->iconOnly()
```

#### Customize Icon

[](#customize-icon)

Icon Text

```
use AxonC\FilamentCopyablePlaceholder\Forms\Components\CopyablePlaceholder;

CopyablePlaceholder::make('response')
    ->content("Placeholder Content")
    ->iconOnly()
    ->icon("heroicons-o-{ICON-NAME}")
```

Icon Color

```
use AxonC\FilamentCopyablePlaceholder\Forms\Components\CopyablePlaceholder;

CopyablePlaceholder::make('response')
    ->content("Placeholder Content")
    ->iconOnly()
    ->icon("heroicons-o-{ICON-NAME}")
    ->iconColor("secondary")
```

### Overwriting Styles

[](#overwriting-styles)

By default, some sensible Tailwind classes are applied to the content of the placeholder and the button. This results in some alignment being applied when in the button (it will establish a flex container with the button) or in icon-only mode will ensure it exists at the vertical end of the content.

This behavior can be overridden by calling `extraAttributes` on the component.

```
use AxonC\FilamentCopyablePlaceholder\Forms\Components\CopyablePlaceholder;

CopyablePlaceholder::make('response')
    ->content("Placeholder Content")
    ->extraAttributes([
        'class' => 'flex border-md-1'
    ])
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Callum Axon](https://github.com/AxonC)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.2% 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 ~24 days

Total

5

Last Release

947d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/35d5c3aa3610efeefc4a55d3011e7745302bf90a6882fac2f089910fa26a63be?d=identicon)[AxonC](/maintainers/AxonC)

---

Top Contributors

[![AxonC](https://avatars.githubusercontent.com/u/6240877?v=4)](https://github.com/AxonC "AxonC (15 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

laravelAxonCfilament-copyable-placeholder

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/axonc-filament-copyable-placeholder/health.svg)

```
[![Health](https://phpackages.com/badges/axonc-filament-copyable-placeholder/health.svg)](https://phpackages.com/packages/axonc-filament-copyable-placeholder)
```

###  Alternatives

[guava/calendar

Adds support for vkurko/calendar to Filament PHP.

298241.0k3](/packages/guava-calendar)[bezhansalleh/filament-google-analytics

Google Analytics integration for FilamentPHP

205144.8k5](/packages/bezhansalleh-filament-google-analytics)[jibaymcs/filament-tour

Bring the power of DriverJs to your Filament panels and start a tour !

12247.8k](/packages/jibaymcs-filament-tour)[marcelweidum/filament-expiration-notice

Customize the livewire expiration notice

9169.0k4](/packages/marcelweidum-filament-expiration-notice)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[outerweb/filament-settings

Filament integration for the outerweb/settings package

3690.9k4](/packages/outerweb-filament-settings)

PHPackages © 2026

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