1. Go to this page and download the library: Download 1994/reviews-statamic 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/ */
1994 / reviews-statamic example snippets
antlers
{{ reviews:summary }}
{{ if has_reviews }}
<p>
<span aria-hidden="true">{{ stars }}{{ if full }}★{{ elseif half }}⯪{{ else }}☆{{ /if }}{{ /stars }}</span>
{{ average }} out of 5, from {{ count }} {{ count == 1 ? 'review' : 'reviews' }}
</p>
<ul>
{{ breakdown }}
<li>{{ rating }} stars: {{ total }} ({{ percent }}%)</li>
{{ /breakdown }}
</ul>
{{ else }}
<p>No reviews yet.</p>
{{ /if }}
{{ /reviews:summary }}