2017 © Pedro PelĂĄez
 

library strawpool-php

Simple class that allows you to use strawpool on your website.

image

masnathan/strawpool-php

Simple class that allows you to use strawpool on your website.

  • Tuesday, January 7, 2014
  • by MASNathan
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

strawpool-php

Downloads with Composer SensioLabs Insight ReiDuKuduro @gittip, (*1)

Simple class that allows you to use strawpool on your website, (*2)

How to install via Composer

The recommended way to install is through Composer., (*3)

# 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:, (*4)

require 'vendor/autoload.php';

How to use

$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;

License

This library is under the MIT License, see the complete license here, (*5)

The Versions

07/01 2014

dev-master

9999999-dev

Simple class that allows you to use strawpool on your website.

  Sources   Download

MIT

The Requires

 

pool strawpool

07/01 2014

0.1

0.1.0.0

Simple class that allows you to use strawpool on your website.

  Sources   Download

MIT

The Requires

 

pool strawpool