PHP code example of jxlwqq / star-rating

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

    

jxlwqq / star-rating example snippets



'extensions' => [
 
     'star-rating' => [
     
         // set to false if you want to disable this extension
         'enable' => true,
         
         // configuration
         'config' => [
             'min' => 1, 'max' => 5, 'step' => 1, 'size' => 'xs', 'language' => 'zh',
         ]
     ]
 ]


$form->starRating('rate');