Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/asvvvad1/dollaapp-clipboard-php

Deprecated in favor of https://github.com/asvvvad/clipboard | Provide copying and pasting to the Clipboard for PHP.
https://github.com/asvvvad1/dollaapp-clipboard-php

clipboard php php-cli php-framework php-library php7 php73 terminal

Last synced: about 2 months ago
JSON representation

Deprecated in favor of https://github.com/asvvvad/clipboard | Provide copying and pasting to the Clipboard for PHP.

Awesome Lists containing this project

README

        

# DEPRECATED: USE [THIS](https://github.com/asvvvad/clipboard) INSTEAD
# Clipboard for PHP
Provide copying and pasting to the Clipboard for PHP.

PHP port of [atotto/clipboard](https://github.com/atotto/clipboard)

Platforms:

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

## Usage

```bash
composer require asvvvad/dollaapp-clipboard-php:dev-master
```

```php
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](https://github.com/asvvvad/cply-php)