PHPackages                             rogeriopradoj/zero-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. rogeriopradoj/zero-clipboard

Abandoned → [zeroclipboard/zeroclipboard](/?search=zeroclipboard%2Fzeroclipboard)Library[Utility &amp; Helpers](/categories/utility)

rogeriopradoj/zero-clipboard
============================

Deprecated - Please check official version now avaliable (https://packagist.org/packages/zeroclipboard/zeroclipboard)

113.2kJavaScript

Since Nov 1Pushed 12y ago1 watchersCompare

[ Source](https://github.com/rogeriopradoj/zero-clipboard-composer)[ Packagist](https://packagist.org/packages/rogeriopradoj/zero-clipboard)[ RSS](/packages/rogeriopradoj-zero-clipboard/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

ZeroClipboard
=============

[](#zeroclipboard)

The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible [Adobe Flash](http://en.wikipedia.org/wiki/Adobe_Flash) movie, and a [JavaScript](http://en.wikipedia.org/wiki/JavaScript) interface. The "Zero" signifies that the library is invisible and the user interface is left entirely up to you.

Simple Example
--------------

[](#simple-example)

```

    Copy to Clipboard

```

```
// main.js
var clip = new ZeroClipboard( document.getElementById("copy-button"), {
  moviePath: "/path/to/ZeroClipboard.swf"
} );

clip.on( 'load', function(client) {
  // alert( "movie is loaded" );
} );

clip.on( 'complete', function(client, args) {
  this.style.display = 'none'; // "this" is the element that was clicked
  alert("Copied text to clipboard: " + args.text );
} );

clip.on( 'mouseover', function(client) {
  // alert("mouse over");
} );

clip.on( 'mouseout', function(client) {
  // alert("mouse out");
} );

clip.on( 'mousedown', function(client) {

  // alert("mouse down");
} );

clip.on( 'mouseup', function(client) {
  // alert("mouse up");
} );
```

See the [instructions](docs/instructions.md) for advanced instructions on how to use the library on your site.

Here is a working [test page](http://jonrohan.github.com/ZeroClipboard/#demo) where you can try out ZeroClipboard in your browser.

Testing ZeroClipboard.swf Locally
---------------------------------

[](#testing-zeroclipboardswf-locally)

To test the page [demo page](http://jonrohan.github.com/ZeroClipboard/#demo) locally. checkout the `gh-pages` branch and run `make`. This should open [localhost:3000](http://localhost:3000/)

```
git co gh-pages
make

```

add `BRANCH=my-dev-branch` to get the assets from a certain branch

```
git co gh-pages
make BRANCH=my-dev-branch

```

Support
-------

[](#support)

This library is fully compatible with Flash Player 10, which requires that the clipboard copy operation be initiated by a user click event inside the Flash movie. This is achieved by automatically floating the invisible movie on top of a [DOM](http://en.wikipedia.org/wiki/Document_Object_Model) element of your choice. Standard mouse events are even propagated out to your DOM element, so you can still have rollover and mouse down effects.

Works in IE8+. Works in IE7 but requires Sizzle/jQuery. (And of course works in all of the other browsers.)

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

[](#contributing)

see [CONTRIBUTING.md](CONTRIBUTING.md)

Releases
--------

[](#releases)

After version [1.1.7](docs/releases.md#zeroclipboard-117) ZeroClipboard uses [semantic versioning](http://semver.org/)

see [releases.md](docs/releases.md)

Roadmap
-------

[](#roadmap)

see [roadmap.md](docs/roadmap.md)

Last Build
----------

[](#last-build)

[![Build Status](https://camo.githubusercontent.com/177ef8df1eb7cd6e3d081272fa4ecca8b130ab84e448b270c47f53d9b0a921ef/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6a6f6e726f68616e2f5a65726f436c6970626f6172642e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/jonrohan/ZeroClipboard)

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.6% 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/486b5f46c079c4288c6679b5d1c07300258ba21952ac9f2e14294a1261fbf8d6?d=identicon)[rogeriopradoj](/maintainers/rogeriopradoj)

---

Top Contributors

[![jonrohan](https://avatars.githubusercontent.com/u/54012?v=4)](https://github.com/jonrohan "jonrohan (326 commits)")[![JamesMGreene](https://avatars.githubusercontent.com/u/417751?v=4)](https://github.com/JamesMGreene "JamesMGreene (17 commits)")[![jrolfs](https://avatars.githubusercontent.com/u/288160?v=4)](https://github.com/jrolfs "jrolfs (8 commits)")[![TooTallNate](https://avatars.githubusercontent.com/u/71256?v=4)](https://github.com/TooTallNate "TooTallNate (6 commits)")[![bowsersenior](https://avatars.githubusercontent.com/u/40264?v=4)](https://github.com/bowsersenior "bowsersenior (3 commits)")[![lhecker](https://avatars.githubusercontent.com/u/2256941?v=4)](https://github.com/lhecker "lhecker (3 commits)")[![rogeriopradoj](https://avatars.githubusercontent.com/u/443391?v=4)](https://github.com/rogeriopradoj "rogeriopradoj (2 commits)")[![avlukanin](https://avatars.githubusercontent.com/u/1560148?v=4)](https://github.com/avlukanin "avlukanin (2 commits)")[![andyluss](https://avatars.githubusercontent.com/u/197572?v=4)](https://github.com/andyluss "andyluss (2 commits)")[![adamyonk](https://avatars.githubusercontent.com/u/33258?v=4)](https://github.com/adamyonk "adamyonk (2 commits)")[![viljoviitanen](https://avatars.githubusercontent.com/u/791012?v=4)](https://github.com/viljoviitanen "viljoviitanen (1 commits)")[![billgathen](https://avatars.githubusercontent.com/u/68129?v=4)](https://github.com/billgathen "billgathen (1 commits)")[![b-long](https://avatars.githubusercontent.com/u/66993?v=4)](https://github.com/b-long "b-long (1 commits)")[![CMTegner](https://avatars.githubusercontent.com/u/820552?v=4)](https://github.com/CMTegner "CMTegner (1 commits)")[![donokuda](https://avatars.githubusercontent.com/u/1174461?v=4)](https://github.com/donokuda "donokuda (1 commits)")[![jpablobr](https://avatars.githubusercontent.com/u/20233?v=4)](https://github.com/jpablobr "jpablobr (1 commits)")[![justinedelson](https://avatars.githubusercontent.com/u/65906?v=4)](https://github.com/justinedelson "justinedelson (1 commits)")[![kingfo](https://avatars.githubusercontent.com/u/331640?v=4)](https://github.com/kingfo "kingfo (1 commits)")[![robo5ive](https://avatars.githubusercontent.com/u/199797071?v=4)](https://github.com/robo5ive "robo5ive (1 commits)")[![scintill](https://avatars.githubusercontent.com/u/848492?v=4)](https://github.com/scintill "scintill (1 commits)")

### Embed Badge

![Health badge](/badges/rogeriopradoj-zero-clipboard/health.svg)

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

###  Alternatives

[m6web/daemon-bundle

bundle sf easing creating daemon commands

59342.8k](/packages/m6web-daemon-bundle)

PHPackages © 2026

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