PHP code example of israelfl / yii2-iflclipboardjs

1. Go to this page and download the library: Download israelfl/yii2-iflclipboardjs 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/ */

    

israelfl / yii2-iflclipboardjs example snippets


"israel/yii2-iflclipboardjs" : "dev-master"

//Button to copy text
<?= \supplyhog\ClipboardJs\ClipboardJsWidget::widget([
    'text' => "Hello World",
    // 'label' => 'Copy to clipboard',
    // 'htmlOptions' => ['class' => 'btn'],
    // 'tag' => 'button',
]) 
 \supplyhog\ClipboardJs\ClipboardJsAsset::register($view)