Download the PHP package jeffersongoncalves/filament-flux without Composer

On this page you can find all versions of the php package jeffersongoncalves/filament-flux. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package filament-flux

![Filament Flux](https://raw.githubusercontent.com/jeffersongoncalves/filament-flux/1.x/art/jeffersongoncalves-filament-flux.png)

Filament Flux

Latest Version on Packagist Total Downloads Tests PHPStan

Filament v5 plugin exposing Livewire Flux UI components as native Form Fields, Table Columns, Infolist Entries, and Actions.

Filament v5 only. Single 1.x branch tracks Filament v5. No backports to v3/v4.

Compatibility

Branch Filament Laravel PHP Livewire Flux
1.x ^5.0 ^11 / ^12 / ^13 ^8.2 ^4.0 ^2.14

Installation

filament-flux:install patches resources/css/filament/{panel}/theme.css idempotently:

Tailwind v4 picks up Flux + this package's view scanning automatically.

Register the plugin

Plugin options

The plugin also installs a JavaScript bridge between Filament's theme switcher and Flux's appearance store, so toggling theme in either system stays in sync (including cross-tab via storage events).

Use Flux everywhere (auto-replace Filament Form Fields)

Existing Resources keep calling TextInput::make(), Select::make(), etc. — they receive the matching Flux subclass automatically. No code changes in your Resources.

Granular opt-out per field:

Available slugs (all default to true when useEverywhere() is called):

Slug Filament class Flux replacement
input TextInput FluxInput
textarea Textarea FluxTextarea
select Select FluxSelect
checkbox Checkbox FluxCheckbox
checkboxList CheckboxList FluxCheckboxGroup
radio Radio FluxRadio
toggle Toggle FluxSwitch
otp OneTimeCodeInput FluxOtpInput

Each Flux subclass extends the matching Filament native, so every method it exposes — autocomplete(), mask(), revealable(), length(), searchable(), relationship(), etc. — keeps working. Only the rendered markup changes.

Use Flux navigation (sidebar + topbar)

Replace Filament's sidebar and topbar items with <flux:navlist.item> / <flux:navlist.group> and <flux:navbar.item> markup, while keeping Filament's data layer (active state, badges, child items, registered Resources/Pages/custom items) intact.

Granular per-area opt-out:

The plugin prepends per-area hint paths to the filament-panels view namespace; missing files fall back to the vendor copies, so upgrading Filament minors stays safe as long as the overridden views (sidebar item, sidebar group, topbar item, layout index, livewire sidebar) still match the prop signatures of the active Filament minor.

Full panel shell (shell toggle)

Off by default — the shell slug rewrites the panel's outer <aside> shell into <flux:sidebar> and wraps the main content in <flux:main>, including the sidebar Livewire view. Header, logo, tenant menu, global search, render hooks and footer behaviors are all preserved.

This is the most invasive override — opt in only after you've confirmed your panel's render hooks and customizations still render correctly. The Filament version that ships with each filament-flux release is the one that's been verified.

Theme switcher (themeSwitcher toggle)

Off by default. Replaces the three-button theme switcher (light / dark / system) with a single <flux:dropdown> carrying a <flux:menu> of the three modes. Filament's theme-changed event is dispatched on selection, so the existing dark mode listener and the bridge into flux.appearance (Phase 1) keep working unchanged.

Use Flux Blade components (useFluxComponents())

Replace Filament's atomic <x-filament::*> Blade components with <x-flux::*>. Each slug is opt-in.

Available slugs:

Slug Filament view Flux replacement
badge filament::components.badge <flux:badge> (color map: primary→blue, success→lime, warning→amber, danger→red, info→cyan, gray→zinc)
avatar filament::components.avatar <flux:avatar>
icon filament::components.icon <flux:icon> (falls back to native HTML for non-string icons)
iconButton filament::components.icon-button <flux:button square icon> (icon HTML wrapped as slot for non-string icons)
link filament::components.link <flux:link>
breadcrumbs filament::components.breadcrumbs <flux:breadcrumbs> + <flux:breadcrumbs.item>
callout filament::components.callout <flux:callout> + <flux:callout.text> (variant mapped from color)
card filament::components.card <flux:card>
fieldset filament::components.fieldset <flux:fieldset> + <flux:legend>
section filament::components.section <flux:card> with header via <flux:heading> + <flux:text>; collapsible/persist preserved via Alpine
dropdown filament::components.dropdown + dropdown.list + dropdown.list.item <flux:dropdown> + <flux:menu> + <flux:menu.item> (Filament placement → flux position/align)
dropdownHeader filament::components.dropdown.header <flux:heading size="sm"> with optional leading icon
modalHeading filament::components.modal.heading <flux:heading size="lg"> (envelope, events and Action machinery stay on Filament)
modalDescription filament::components.modal.description <flux:text>
schemaText filament-schemas::components.text <flux:text> (badge variant still delegates to <x-filament::badge>)
statsCard filament-widgets::stats-overview-widget.stat <flux:card> + <flux:heading size="xl"> + <flux:subheading> + <flux:text> (chart Alpine canvas + URL anchor preserved)
notifications filament-notifications::notifications <flux:toast.group> envelope (Filament alignment + verticalAlignment mapped to Flux position); each Notification keeps its own Filament-styled markup inside the group
pagination filament::components.pagination.index <flux:pagination> (drops Filament-only pageOptions per-page dropdown, extremeLinks, and cursor-paginator chevron special-casing — disable the slug if you rely on those)

The plugin prepends per-slug hint paths to the filament, filament-schemas (for schemaText), filament-widgets (for statsCard) and filament-notifications (for notifications) view namespaces; missing files fall back to vendor copies. Feature complexity (delete buttons on badges, key bindings, loading indicators, deferred badges, form-tag dropdown items, secondary/divided/aside section variants) doesn't fully map to Flux primitives — disable a slug if you rely on the Filament-only affordances.

Mixed icon sets (Heroicons + Font Awesome / Tabler / Lucide / etc.)

Filament users frequently register icons from non-heroicon Blade Icons sets. The bundled HeroiconNormalizer detects known prefixes (fontawesome-, tabler-, lucide-, phosphor-, mdi-, octicon-, bi-, feather-, simple-icons-, eos-icons-, bxl-, bxs-, bx-, gmdi-, css-gg-, fa[brs]?-) and falls back to \Filament\Support\generate_icon_html() so those icons keep rendering through Blade Icons. Bare names (no prefix) and heroicon-{o,s,m,c,mini,micro,outline,solid}-* are routed through <flux:icon> with the correct variant.

Notifications and user menu

Filament's notifications system and user-menu use deep DSL surfaces that don't map cleanly onto Flux primitives. The recommended path:

Form Fields

Actions

Note on modals: Action confirmation/forms reuse Filament's native modal system (consistent with the rest of the panel). <flux:modal> is not available in Flux free; use Filament modals or roll your own with Alpine in Custom Pages.

Table Columns

Infolist Entries

Color resolver

fluxColor() accepts three forms:

Valid Flux colors: zinc, red, orange, amber, yellow, lime, green, emerald, teal, cyan, sky, blue, indigo, violet, purple, fuchsia, pink, rose.

FluxIcon helper

OTP input

Link Action / Column / Entry

Schema components

Drop-in for forms and infolists.

Modal helper for Custom Pages

Programmatic open/close from Livewire:

Action confirmation modals reuse Filament's native modal system (->requiresConfirmation()). Use <flux:modal> only in Custom Pages where you control the markup directly.

Toast notifications

Breadcrumbs and pagination

Custom Pages — direct Blade usage

Components that don't have a Filament wrapper (page-level layout, not Form/Schema primitives) are still available via Flux's anonymous Blade components in any Custom Page:

<x-flux::accent>, <x-flux::aside>, <x-flux::brand>, <x-flux::container>, <x-flux::main>, <x-flux::header>, <x-flux::footer>, <x-flux::navbar>, <x-flux::navlist>, <x-flux::navmenu>, <x-flux::sidebar>, <x-flux::profile>, <x-flux::label>, <x-flux::legend>, <x-flux::error>, <x-flux::field>, <x-flux::description>, <x-flux::link>, <x-flux::heading>, <x-flux::subheading>, <x-flux::text>, <x-flux::tooltip>, <x-flux::with-field>, <x-flux::with-tooltip>.

Theme bridge

dist/filament-flux.css maps Filament's design tokens (--fi-color-primary-*, --fi-color-gray-*) to Flux's tokens (--color-accent, --color-zinc-*) inside .filament-flux-scope. Disable the wrapper to keep Flux's native zinc palette:

Troubleshooting

Components render unstyled (look like raw HTML). Tailwind v4 isn't scanning Flux's source. Re-run php artisan filament-flux:install --panel=admin and npm run build. Confirm the two @import lines are present in resources/css/filament/{panel}/theme.css.

Theme toggle doesn't propagate to Flux components. The plugin injects a bridge script. If you disabled injectAppearance(false), you also disabled the bridge. Re-enable it or wire your own listener for theme-changed.

auth.json warning during install. Only relevant for filament-flux-pro (sister package). Ignore for filament-flux.

Validation error appears twice. Filament's wrapper renders the error message; the Flux component renders a red border via :invalid. They are not duplicates — the border is visual only.

Testing

Credits

License

The MIT License (MIT). See License File.


All versions of filament-flux with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
filament/filament Version ^5.0
livewire/flux Version ^2.14
spatie/laravel-package-tools Version ^1.16
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jeffersongoncalves/filament-flux contains the following files

Loading the files please wait ...