pmdevelopment / zeroclipboard-bundle
Symfony2 Bundle for ZeroClipboard
Installs: 63 653
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=5.3.2
- zeroclipboard/zeroclipboard: 2.1.*
This package is auto-updated.
Last update: 2022-01-19 12:23:34 UTC
README
Symfony2 Bundle for ZeroClipboard to create "Copy to Clipboard" Buttons.
Installation
Add by composer:
composer require pmdevelopment/zeroclipboard-bundle:dev-master
Add to AppKernel to enable bundle:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new PM\Bundle\ZeroClipboardBundle\PMZeroClipboardBundle(), ); }
Add JavaScripts to use ZeroClipboard:
<script type="text/javascript" src="{{ asset("/bundles/pmzeroclipboard/js/ZeroClipboard.min.js") }}"></script> <script type="text/javascript" src="{{ asset("/bundles/pmzeroclipboard/js/config.js") }}"></script>
Documentation
For examples and documentation visit the ZeroClipboard repository.