1. Go to this page and download the library: Download ccuffs/poll-from-text 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/ */
ccuffs / poll-from-text example snippets
$poller = new CCUFFS\Text\PollFromText();
$questions = $poller->parse('Favorite color?')
var_dump($questions);
$config = [
'multiline_question' => false, // if `true`, questions are allowed to have `\n` in their text.
'attr_validation' => PollFromText::ATTR_AS_TEXT, // allow any text a attribute (no validation)
];
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.