Simple class that allows you to use strawpool on your website.
Simple class that allows you to use strawpool on your website
The recommended way to install is through Composer.
# Install Composer $ curl -sS https://getcomposer.org/installer | php # Add strawpool-php as a dependency $ php composer.phar require masnathan/strawpool-php:*
Once it's installed, you need to require Composer's autoloader:
$pool = new Strawpool('Title', array('option1', 'option2'), $multiple_choice = true, $permissive = false); //you can can the iframe html doing this echo $pool->getHtml($width = 600, $height = 332, $border = 0); //or simply echo $pool; //The pool id is also available so you can do whatever you feel like echo $pool->id;
This library is under the MIT License, see the complete license here