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

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

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

This is my package filament-copyable-placeholder

v0.4.0(4mo ago)414.5k—0%1[1 issues](https://github.com/AxonC/filament-copyable-placeholder/issues)[2 PRs](https://github.com/AxonC/filament-copyable-placeholder/pulls)MITPHPPHP ^8.2CI failing

Since Jul 8Pushed 4mo 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 2w ago

READMEChangelog (4)Dependencies (24)Versions (9)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

43

—

FairBetter than 89% of packages

Maintenance70

Regular maintenance activity

Popularity29

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 89.5% 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 ~200 days

Recently: every ~227 days

Total

6

Last Release

135d ago

PHP version history (2 changes)v0.1.0PHP ^8.1

v0.4.0PHP ^8.2

### 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 (17 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

Static AnalysisPHPStan

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

[backstage/mails

View logged mails and events in a beautiful Filament UI.

16429.7k](/packages/backstage-mails)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3915.5k](/packages/rawilk-profile-filament-plugin)[stephenjude/filament-feature-flags

Filament implementation of feature flags and segmentation with Laravel Pennant.

123204.9k1](/packages/stephenjude-filament-feature-flags)[marcelweidum/filament-expiration-notice

Customize the livewire expiration notice

94160.6k6](/packages/marcelweidum-filament-expiration-notice)[stephenjude/filament-two-factor-authentication

Filament Two Factor Authentication: Google 2FA + Passkey Authentication

85240.3k9](/packages/stephenjude-filament-two-factor-authentication)[marcelweidum/filament-passkeys

Use passkeys in your filamentphp app

6758.2k2](/packages/marcelweidum-filament-passkeys)

PHPackages © 2026

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