承接 ibrahimbougaoua/filament-rating-star 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ibrahimbougaoua/filament-rating-star

最新稳定版本:v1.0.4

Composer 安装命令:

composer require ibrahimbougaoua/filament-rating-star

包简介

This is my package filament-rating-star

README 文档

README

Latest Version on Packagist GitHub Code Style Action Status Total Downloads

Star rating field & Star column.

Support us

"Buy Me A Coffee"

Youtube Video

Installation

You can install the package via composer:

composer require ibrahimbougaoua/filament-rating-star

You can publish the config file with:

php artisan vendor:publish --tag="filament-rating-star-config"

This is the contents of the published config file:

return [
    'stars' => [
        'star1' => '1',
        'star2' => '2',
        'star3' => '3',
        'star4' => '4',
        'star5' => '5',
    ]
];

Optionally, you can publish the views using

php artisan vendor:publish --tag="filament-rating-star-views"

Usage

With Form :

use IbrahimBougaoua\FilamentRatingStar\Forms\Components\RatingStar;

return $form
    ->schema([
        Section::make()
            ->schema([
                RatingStar::make('rating')
                ->label('Rating')
            ])
        ])

With Table :

use IbrahimBougaoua\FilamentRatingStar\Columns\Components\RatingStar;

return $table
    ->columns([
        RatingStar::make('rating')
    ])

With Infolist :

use IbrahimBougaoua\FilamentRatingStar\Entries\Components\RatingStar;

return $infolist
    ->schema([
        RatingStar::make('rating')
    ])

You can use the size method to customize the size of the stars:

use IbrahimBougaoua\FilamentRatingStar\Columns\Components\RatingStar;

return $table
    ->columns([
        RatingStar::make('rating')
            ->size('sm')
    ])

Supported sizes are xs, sm, md, lg and xl.

Testing

composer test

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 83.8k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 42
  • 点击次数: 1
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 42
  • Watchers: 1
  • Forks: 22
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-08-24