PHPackages                             asvvvad/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. asvvvad/clipboard

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

asvvvad/clipboard
=================

Perform clipboard operations (Copy/Paste) in PHP.

91372[2 PRs](https://github.com/asvvvad/clipboard/pulls)PHP

Since May 11Pushed 4y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Clipboard for PHP
=================

[](#clipboard-for-php)

Provide copying and pasting to the Clipboard for PHP.

PHP port of [atotto/clipboard](https://github.com/atotto/clipboard) except for the Windows part

> #### Requires PHP 7.2.0 and above
>
> [](#requires-php-720-and-above)

Platforms:
----------

[](#platforms)

- **OSX**
- **Linux, Unix/BSD**: Requires `xclip` or `xsel` to be installed
- - **Wayland**: Requires [wl-clipboard](https://github.com/bugaevc/wl-clipboard)
- **Android using Termux**: Requires Termux:API add-on
- **Windows**: Copying works normally but pasting requires [paste.exe](https://www.c3scripts.com/tutorials/msdos/paste.html#exe) to be in PATH or it'll fallback to using powershell which a bit slow.

Usage
-----

[](#usage)

```
composer require asvvvad/clipboard:dev-master
```

```
require 'vendor/autoload.php';

$c = new Clipboard();

if ($c->isUnsupported() === false) {
	$c->writeAll('copied');
	echo $c->readAll(); // "copied"
}
```

Used in:
--------

[](#used-in)

My own [cply-php](https://github.com/asvvvad/cply-php)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity33

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/139afc2ab8291c4afd3db6e1b93a47a5417e4f956a964996e743c3692b963d2a?d=identicon)[asvvvad](/maintainers/asvvvad)

---

Top Contributors

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

---

Tags

bsdclipboardlinuxphpphp7solaristermuxunixwaylandwindows

### Embed Badge

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

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

###  Alternatives

[mediamonks/composer-vendor-cleaner

Removes as much as possible from your vendor dir when space or number of files is important

2658.4k](/packages/mediamonks-composer-vendor-cleaner)

PHPackages © 2026

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