PHPackages                             eddmash/yii2-clipboard - 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. [Framework](/categories/framework)
4. /
5. eddmash/yii2-clipboard

ActiveYii2-extension[Framework](/categories/framework)

eddmash/yii2-clipboard
======================

The Clipboard js extension for the Yii2 framework

520.1k↑25%3[1 PRs](https://github.com/eddmash/yii2-clipboard/pulls)PHP

Since Feb 8Pushed 6y ago2 watchersCompare

[ Source](https://github.com/eddmash/yii2-clipboard)[ Packagist](https://packagist.org/packages/eddmash/yii2-clipboard)[ RSS](/packages/eddmash-yii2-clipboard/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-clipboard
==============

[](#yii2-clipboard)

A Yii2 extension that makes it easy to copy input item value on to clipboard.

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

> Read this [web tip /wiki](http://webtips.krajee.com/setting-composer-minimum-stability-application/) on setting the `minimum-stability` settings for your application's composer.json.

Either run

```
$ php composer.phar require eddmash/yii2-clipboard "@dev"

```

or add

```
"eddmash/yii2-clipboard": "@dev"

```

to the `require` section of your `composer.json` file.

Usage
-----

[](#usage)

You can use the widget which create a input that has copy button.

```
    echo \Eddmash\Clipboard\Clipboard::widget([
        'model' => $model,
        'attribute' => 'email',
        'options'=>['readonly'=>""]
    ]);
```

Or if you need to use it without a model. The `Clipboard::input()` method is works like `HTML::tag()` actually its use it to create its output. The only difference is that it takes the first argument as the view object on which the output is being done.

```

    $url = "https://packagist.org/packages/eddmash/yii2-clipboard";
    Clipboard::input($this, 'text', 'url', $url, ['id' => 'url', 'readonly' => true])
```

Or if simply need the composer.js loaded on a view

```
    \Eddmash\Clipboard\ClipboardAsset::register($this)
```

Learn more [yii2-clipboard documentation](https://eddmash.github.io/yii2-clipboard/docs/v1_0_0/classes/Eddmash.Clipboard.Clipboard.html)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ad2b7436ac8ab51172e312718de2e480a3d14a418af141b8aa9d926665e7b5ed?d=identicon)[eddmash](/maintainers/eddmash)

---

Top Contributors

[![eddmash](https://avatars.githubusercontent.com/u/5079225?v=4)](https://github.com/eddmash "eddmash (11 commits)")

### Embed Badge

![Health badge](/badges/eddmash-yii2-clipboard/health.svg)

```
[![Health](https://phpackages.com/badges/eddmash-yii2-clipboard/health.svg)](https://phpackages.com/packages/eddmash-yii2-clipboard)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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