andrewdwallo/filament-selectify
Composer 安装命令:
composer require andrewdwallo/filament-selectify
包简介
This is my package filament-selectify
README 文档
README
A small package featuring two simple components that serve as excellent alternatives to toggles, radio buttons, and other selectors. These components not only offer seamless user interactions but also maintain UI consistency by effortlessly aligning with neighboring fields and components.
Installation
You can install the package via composer:
composer require andrewdwallo/filament-selectify
Optionally, you can publish the views using
php artisan vendor:publish --tag="filament-selectify-views"
Registering Styles
In order for the component's styles to be processed, you must add this package's vendor directory into your panels custom theme.css file. You can see how to create a Filament PHP custom theme here.
@source '../../../../vendor/andrewdwallo/filament-selectify/resources/views';
Usage
ToggleButton
The ToggleButton has the following options. The onLabel() and offLabel() represent the true and false states. You may also customize the color representing each state using onColor() and offColor().
ToggleButton::make('enabled') ->offColor('danger') ->onColor('primary') ->offLabel('No') ->onLabel('Yes') ->default(true),
ButtonGroup
The ButtonGroup has the following options. You may customize the color representing each state. The onColor() represents the button or value that is selected and the offColor() represents the button or value that is not selected. You may use gridDirection() to change the layout of the buttons. The options are column and row. The default is column.
You may optionally add icons for the buttons using icons() and supplying an array that contains the option values as keys and icon names as values. Icon position and size can be changed using iconPosition() (default: before) and iconSize() (default: Small).
ButtonGroup::make('entity') ->options([ 'individual' => 'Individual', 'company' => 'Company', ]) ->onColor('primary') ->offColor('gray') ->gridDirection('row') ->default('individual') ->icons([ 'individual' => 'heroicon-m-user', 'company' => 'heroicon-m-building-office', ]) ->iconPosition(\Filament\Support\Enums\IconPosition::After) ->iconSize(Filament\Support\Enums\IconSize::Medium),
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
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.
andrewdwallo/filament-selectify 适用场景与选型建议
andrewdwallo/filament-selectify 是一款 基于 Blade 开发的 Composer 扩展包,目前已累计 88.11k 次下载、GitHub Stars 达 46, 最近一次更新时间为 2023 年 07 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「andrewdwallo」 「filament-selectify」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 andrewdwallo/filament-selectify 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 andrewdwallo/filament-selectify 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 andrewdwallo/filament-selectify 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A comprehensive Laravel authentication and authorization system designed for Filament, focusing on multi-tenant company management.
Automate and streamline real-time text translations in your Laravel applications
Alfabank REST API integration
A Laravel Authentication System based on Companies built using Filament
Laravel package for Accurate Online API integration.
Shared RCX Laravel DataTables UI and configuration helpers.
统计信息
- 总下载量: 88.11k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 46
- 点击次数: 17
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-07-01