asvvvad/dollaapp-clipboard-php

This package is abandoned and no longer maintained. The author suggests using the asvvvad/clipboard package instead.

Provide copying and pasting to the Clipboard for PHP.

dev-master 2020-04-23 16:41 UTC

This package is auto-updated.

Last update: 2020-04-23 16:51:09 UTC


README

Clipboard for PHP

Provide copying and pasting to the Clipboard for PHP.

PHP port of atotto/clipboard

Platforms:

  • OSX
  • Linux, Unix (requires 'xclip' or 'xsel' command to be installed)
  • Windows not tested (but probably work)

Usage

composer require asvvvad/dollaapp-clipboard-php:dev-master
require 'vendor/autoload.php';

use dollaapp\Clipboard;

$c = new Clipboard();

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

Used in:

My own cply-php