kematjaya/rating-bundle

用于生成评分的扩展包

1.8.3 2022-08-22 15:10 UTC

This package is auto-updated.

Last update: 2024-09-22 19:34:01 UTC


README

  1. 安装
composer require kematjaya/rating-bundle
  1. 将以下代码添加到 config/bundles.php
...
Kematjaya\RatingBundle\RatingBundle::class => ['all' => true]
...
  1. 在模板中使用
rating(5)
// or
rating(8, 10)
  1. 添加 font-awesome css
<link rel="stylesheet" type="text/css" href="{{ asset('bundles/rating/fontawesome/css/fontawesome.min.css') }}"/>