PHP code example of nova-cards / rating-card

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

    

nova-cards / rating-card example snippets


public function cards() {
    return [
	new RatingCard('Your Avg Rating', 10, 'App\Movie', 'rating'),
    ];
}