asvvvad / dollaapp-clipboard-php
Provide copying and pasting to the Clipboard for PHP.
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/asvvvad/dollaapp-clipboard-php
Requires
- php: >=7.0.0
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