Download the PHP package jeffersongoncalves/filament-flux-pro without Composer
On this page you can find all versions of the php package jeffersongoncalves/filament-flux-pro. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jeffersongoncalves/filament-flux-pro
More information about jeffersongoncalves/filament-flux-pro
Files in jeffersongoncalves/filament-flux-pro
Package filament-flux-pro
Short Description Filament v5 plugin exposing Livewire Flux Pro components (Date Picker, Calendar, Editor, Charts, Kanban, Command Palette) as native Form Fields, Widgets and Page Concerns.
License MIT
Homepage https://github.com/jeffersongoncalves/filament-flux-pro
Informations about the package filament-flux-pro
Filament Flux Pro
Filament v5 plugin that exposes Livewire Flux Pro components — Date Picker, Calendar, Color Picker, Editor, File Upload, Slider, Pillbox, Autocomplete, Charts, Tabs, Accordion, Popover, Kanban, Command Palette, Composer and Context Menu — as native Filament Form Fields, Widgets, Schema Components and Page Concerns.
⚠️ This package requires a commercial Flux Pro license. The wrapper itself is MIT-licensed, but the runtime dependency
livewire/flux-prois proprietary. Buy at https://fluxui.dev before installing.
Compatibility
| filament-flux-pro | filament-flux | Filament | Laravel | PHP | Flux Pro |
|---|---|---|---|---|---|
1.x |
^1.0 |
5.x |
12 / 13 | 8.2+ | ^2.13 |
What you get
- Form Fields:
FluxDatePicker,FluxDateTimePicker,FluxTimePicker,FluxCalendar,FluxColorPicker,FluxEditor,FluxFileUpload,FluxSlider,FluxPillbox,FluxAutocomplete,FluxComposer - Widgets:
FluxLineChartWidget,FluxAreaChartWidget,FluxBarChartWidget(andFluxChartWidgetabstract) - Table Columns:
FluxChartColumn(sparkline) - Schema Components:
FluxTabs,FluxAccordion - Page Concerns:
HasKanban,HasCommandPalette,HasComposer+FluxKanbanPage,FluxCommandPalettePage,FluxComposerPageabstract bases - Actions:
FluxCommandAction - Helpers:
FluxPopover,FluxContextMenu,EditorImageUploader,HtmlSanitizer,KanbanColumnDefinition,KanbanCardData,CommandRegistry
Pre-requisites
Before you run composer require:
-
Add the Flux Pro Composer repository to your project's
composer.json: -
Create
auth.jsonin your project root with your Flux Pro credentials: -
Add
auth.jsonto.gitignore— these credentials authenticate against your paid license. Never commit them. - Register the free plugin first. This package depends on
jeffersongoncalves/filament-fluxbeing installed and registered on the panel.
Installation
The install command:
- Patches
resources/css/filament/{panel}/theme.csswith the@sourcepaths Tailwind v4 needs to scan Flux Pro's stubs and this plugin's views. - Publishes the config file (
config/filament-flux-pro.php). - Warns if any of the pre-requisites above are missing.
After running it:
Plugin registration
Register the free plugin first, then this one:
If you forget the free plugin, registration throws a RuntimeException telling you to add it.
Auto-bind Filament fields to their Flux Pro replacements
useEverywhere() rebinds Filament's own form fields to their Flux Pro equivalents through the service container, so existing Resources keep calling DatePicker::make(), RichEditor::make(), etc. and receive the Flux Pro version at runtime.
| Slug | Filament class | Flux Pro class |
|---|---|---|
datePicker |
DatePicker |
FluxDatePicker |
dateTimePicker |
DateTimePicker |
FluxDateTimePicker |
timePicker |
TimePicker |
FluxTimePicker |
colorPicker |
ColorPicker |
FluxColorPicker |
richEditor |
RichEditor |
FluxEditor |
fileUpload |
FileUpload |
FluxFileUpload |
slider |
Slider |
FluxSlider |
tagsInput |
TagsInput |
FluxPillbox |
tabs |
Schemas\Components\Tabs |
FluxTabs |
Form Fields
FluxDatePicker / FluxDateTimePicker / FluxTimePicker / FluxCalendar
FluxColorPicker
FluxEditor
fluxSanitize() runs every saved value through HtmlSanitizer, which strips <script>, <style>, <iframe>, on* event handlers and javascript: URLs while keeping the standard rich-text tag set (p, strong, em, a, h1-h6, ul, ol, li, code, pre, blockquote, img, …).
FluxFileUpload
FluxSlider
FluxPillbox
FluxAutocomplete
FluxComposer
Chat-style input with attachments and @-mentions:
The dehydrated state is either a plain string (when only text is filled) or an array ['text' => string, 'attachments' => array, 'mentions' => array].
Charts
Three abstract widgets ready to subclass:
FluxAreaChartWidget and FluxBarChartWidget work the same way. The default option set is ['colors' => ['accent'], 'showLegend' => true, 'showGrid' => true, 'showAxis' => true] and can be overridden by re-implementing getOptions().
FluxChartColumn (sparkline in tables)
Schema components
FluxTabs
FluxAccordion
FluxPopover
FluxPopover::trigger() returns an HtmlString you can render anywhere:
The position attribute is HTML-escaped, so user-controlled values are safe.
FluxContextMenu
Pages
Kanban
The Kanban migration must include status (or whatever getKanbanStatusField() returns) and an order column. Override getKanbanOrderField() to use a different name.
Command Palette
The trait already exposes openCommandPalette(), closeCommandPalette(), toggleCommandPalette(), executeCommand($key) and getFilteredCommands(). Render the palette from vendor/jeffersongoncalves/filament-flux-pro/resources/views/pages/command-palette-modal.blade.php (publish + customize when needed) or pass $this->isCommandPaletteOpen to your own modal.
CommandRegistry helper
If you want a free-standing collection of commands (not bound to a page), use the registry:
FluxCommandAction (record-scoped command palette)
Composer page
When to reach for filament-flux-pro
| Use Filament native | Use Flux Pro |
|---|---|
| Internal admin where Filament defaults already work | Customer-facing UI where Flux's polish matters |
| Tight budget, no Flux license | You already paid for Flux Pro elsewhere |
| Static dashboards, simple CRUD | Kanban boards, command palettes, chat input, charts |
| Native rich text is enough | Image uploads inside the editor with sanitization |
Troubleshooting
composer requirefails withCould not find package livewire/flux-pro— yourcomposer.jsonis missing thecomposer.fluxui.devrepository. See Pre-requisites above.composer requirefails withCould not authenticate against composer.fluxui.dev—auth.jsonis missing or has invalid credentials. Re-create it with the email + license key from your Flux Pro account.auth.jsonshows up ingit status— add it to.gitignoreimmediately. The install command warns about this.RuntimeException: FilamentFluxProPlugin requires FilamentFluxPlugin to be registered first— list the free plugin before the Pro one in your panel provider's->plugin()chain.- Kanban resets cards to position 0 on drag-drop — your migration is missing the order column. Either add an
orderinteger column or overridegetKanbanOrderField()to point to your existing column. - Command palette hotkey doesn't fire — the page must dispatch
open-command-paletteitself or listen withprotected $listeners = ['open-command-palette' => 'openCommandPalette'];. The plugin only exposes the configuration; binding the keystroke is your responsibility. - Editor saves raw HTML with
<script>tags — make surefluxSanitize()is on (default) and that you're reading the dehydrated state from the form, not the raw Livewire property.
License
The wrapper code in this repository is MIT — see https://fluxui.dev to install and run this plugin.
All versions of filament-flux-pro with dependencies
filament/filament Version ^5.0
jeffersongoncalves/filament-flux Version ^1.12
livewire/flux-pro Version ^2.13
spatie/laravel-package-tools Version ^1.16