2017 © Pedro Peláez
 

yii2-extension poll-and-charts

An widget to create polls and to wrap google chart for Yii Framework 2

image

vkolya/poll-and-charts

An widget to create polls and to wrap google chart for Yii Framework 2

  • Thursday, January 26, 2017
  • by Vkolya
  • Repository
  • 1 Watchers
  • 1 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 13 % Grown

The README.md

yii2-poll

Poll and google charts widget for yii2, (*1)

The Poll and google charts widget for the Yii2 framework allows you to create custom polls and draw google charts for them ., (*2)

Installing, (*3)

The preferred way to install this extension is through composer., (*4)

Either run, (*5)

php composer.phar require "vkolya/poll-and-charts":"dev-master"

or add, (*6)

"vkolya/poll-and-charts":"dev-master"

to the require section of your application's composer.json file., (*7)

Usage, (*8)

At first, import widget classes in view file where you want create poll, (*9)

use vkolya\poll\myPoll; Then invoke the widget and specify the name of the poll and the response options, (*10)

echo myPoll::widget([
     'visualization' => 'PieChart',
     'pullName' => 'What framework do you know ?',

     'answerOptions'=>
            [

        'Laravel',
        'Yii2',
        'Symfony',

            ],
    'diagrammsOptions' => array(title => 'Frameworks',
        height => 300,
        width => 450,
            ),
            ])

, (*11)

The Versions

26/01 2017

dev-master

9999999-dev

An widget to create polls and to wrap google chart for Yii Framework 2

  Sources   Download

BSD-2-Clause

The Requires

 

by Mykola Vantukh

yii2 widget poll poll-widget yii2-poll-widget