Download the PHP package jaocero/radio-deck without Composer
On this page you can find all versions of the php package jaocero/radio-deck. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jaocero/radio-deck
More information about jaocero/radio-deck
Files in jaocero/radio-deck
Package radio-deck
Short Description Turn filament default radio button into a selectable card with icons, title and description.
License MIT
Homepage https://github.com/jaocero/radio-deck
Informations about the package radio-deck
Radio Deck
Turn filament default radio button into a selectable card with icons, title and description.
Requirements
- FilamentPHP v4.x
- PHP 8.2+
- Laravel v11.28+
- Tailwind CSS v4.0+
Installation
You can install the package via composer:
For FilamentPHP v4 Users
To adhere to Filament's theming approach, you'll be required to employ a personalized theme in order to utilize this plugin.
Custom Theme Installation Filament v4 Docs - Creating a Custom Theme
Instead of adding the plugin's views to your tailwind.config.js
file, add the following source directive to your custom theme's CSS file (usually resources/css/filament/admin/theme.css
):
This will include the plugin's styles during the compilation process.
Migration from v3 to v4
If you're upgrading from Radio Deck v3 to v4, please follow these steps:
1. Update Dependencies
2. Create a Custom Theme
Since FilamentPHP v4 requires custom themes for plugins, you need to create one:
3. Update Theme Configuration
Remove the old configuration from your tailwind.config.js
:
Add the source directive to your theme's CSS file instead:
4. Update Import Statements
Update your import statements to use the new namespace structure:
5. Method Changes
Some method names have been updated for better consistency:
Usage
Using Enums
You can also utilize an Enum class for ->options()
, ->descriptions()
, and ->icons()
. Here's an example:
Usage with Enum:
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
- Jay-Are Ocero
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of radio-deck with dependencies
filament/forms Version ^4.0
spatie/laravel-package-tools Version ^1.15.0
illuminate/contracts Version ^11.0|^12.0