PHP code example of edgrosvenor / php-clipboard

1. Go to this page and download the library: Download edgrosvenor/php-clipboard library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

edgrosvenor / php-clipboard example snippets




use Edgrosvenor\PHPClipboard\Clipboard;

class CopyStuff 
{
    public function copyMyName($name = 'Ed Grosvenor')
    {
        $clipboard = new Clipboard();
        $clipboard->copy($name);
        // 'Ed Grosvenor' has been copied to your clipboard
    }
}
shell script
composer