PHP code example of iionly / elggx_fivestar

1. Go to this page and download the library: Download iionly/elggx_fivestar 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/ */

    

iionly / elggx_fivestar example snippets


echo elgg_view("elggx_fivestar/voting", array(
    'entity' => $entity,
    'min' => true,
    'subclass' => 'fivestar_subclass',
    'outerId' => 'fivestar_rating_list',
    'ratingTextClass' => 'fivestar_rating_text'
));

    echo elgg_view("elggx_fivestar/voting", array('entity' => $entity));