Download the PHP package wishborn/fancy-flux without Composer
On this page you can find all versions of the php package wishborn/fancy-flux. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wishborn/fancy-flux
More information about wishborn/fancy-flux
Files in wishborn/fancy-flux
Package fancy-flux
Short Description Custom Flux UI components - carousel, color-picker, and emoji-select
License MIT
Informations about the package fancy-flux
Fancy Flux
Custom Flux UI components for Laravel Livewire applications.
Installation
Component Prefix Configuration
To avoid naming conflicts with official Flux components or other custom components, you can configure a custom prefix for Fancy Flux components.
Publish the config file:
Configure in config/fancy-flux.php:
Configuration Priority:
Configuration is loaded in this order (later values override earlier ones):
- Default PHP config (
config/fancy-flux.php) - Base defaults - Environment variables (
.env) - Highest priority, overrides PHP config
Environment Variables (Optional Override):
You can override PHP config with environment variables for environment-specific settings:
Usage Examples:
- No prefix (default): Components available as
<flux:carousel> - With prefix 'fancy': Components available as
<fancy:carousel>(and optionally<flux:carousel>ifuse_flux_namespaceistrue)
Configuration Options:
prefix- Custom prefix for components (e.g.,"fancy","custom","myapp"). Set tonullfor no prefix.use_flux_namespace- Whentrue, components are also available in thefluxnamespace for backward compatibility. Set tofalseto use ONLY the prefixed namespace.enable_demo_routes- Whentrue, demo routes are loaded from the package at/fancy-flux-demos/*. Set tofalseto publish and customize routes yourself.
Why use a prefix?
- Avoid conflicts: If Flux releases an official
carouselcomponent, your prefixed version won't conflict - Multiple packages: If you use multiple custom Flux component packages, prefixes prevent conflicts
- Clear ownership: Makes it clear which components are from Fancy Flux vs official Flux
Requirements
- PHP 8.2+
- Laravel 10+ / 11+ / 12+
- Livewire 3.7+ / 4.0+
- Flux UI 2.0+
Components
⚡ Action
A reusable button component with standalone colors, behavioral states, shape variants, avatars, badges, icons, emojis, and flexible placement.
Quick Example:
Examples
🎠 Carousel
A flexible carousel/slideshow component with multiple variants:
- Directional - Navigation with prev/next arrows, supports autoplay
- Wizard - Step-based navigation with numbered indicators, perfect for multi-step forms
- Thumbnail - Image-based navigation with preview thumbnails
Quick Example:
Examples
🎨 Color Picker
A native color input component with enhanced UI, swatch preview, and preset support.
Quick Example:
Examples
😀 Emoji
Display emojis using slugs, classic emoticons, or raw characters - like flux:icon but for emoji.
Quick Example:
Full Documentation
🎯 Emoji Select
A composable emoji picker component with category navigation, search, and customizable styling. Saves the emoji character directly (e.g., 🔥), with backward compatibility for slug values.
Quick Example:
Examples
📅 Timeline
A lightweight vertical timeline for displaying events. Pure Tailwind CSS + Alpine.js, no external dependencies. Supports stacked and alternating layouts, per-event colors, icons, emojis, and scroll-reveal animation.
Quick Example:
Examples
FANCY Facade
The FANCY facade provides programmatic access to FancyFlux features:
Full Documentation
Documentation
- Usage Guide - Comprehensive documentation for all components
- Component Docs - Detailed guides for each component:
- Action
- Carousel
- Color Picker
- Emoji
- Emoji Select
- Timeline
- FANCY Facade
- Prefix Configuration - Configure custom component prefixes to avoid naming conflicts
- Troubleshooting - Common issues and solutions by version
Demos
Ready-to-use examples are available in the demos/ folder. Copy the demo files into your Laravel application to get started quickly:
- Action Examples - State variants, icons, emojis, and placements
- Basic Carousel - Simple data-driven carousel
- Wizard Form - Multi-step form with validation
- Nested Carousel - Nested carousels with parent advancement
- Dynamic Carousel - Add/remove slides dynamically
- Color Picker Examples - All color picker variants
- Emoji Select Examples - All emoji select variants
- Timeline Examples - Standalone, with controls, inside carousel
See the demos README for details.
Laravel Boost Integration
Fancy Flux includes AI guidelines for Laravel Boost. When you install this package and run php artisan boost:install, Boost will automatically load the guidelines to help AI assistants generate correct code for Fancy Flux components.
Custom AI Guidelines
You can also add custom AI guidelines for Fancy Flux by creating a .ai/guidelines/fancy-flux.md file in your application. This allows you to customize how AI assistants understand and use Fancy Flux components in your specific project context.
Upgrade Guide
General Upgrade Steps
-
Update via Composer:
-
Clear caches:
-
Review changelog: Check CHANGELOG.md for version-specific changes
- Test your application: Verify all components work as expected
Upgrading to 1.0.8+
New Feature: Component Prefix Configuration
Version 1.0.8 introduces optional component prefix configuration to avoid naming conflicts. This is backward compatible - existing code will continue to work without changes.
Optional: Configure a Prefix
If you want to use a custom prefix (recommended for new projects):
-
Publish the config file:
-
Set prefix in
config/fancy-flux.php: - Clear config cache:
No Action Required
If you don't configure a prefix, components continue to work exactly as before:
<flux:carousel>- Still works<flux:color-picker>- Still works<flux:emoji-select>- Still works
Migration Path (Optional)
If you want to migrate to a prefixed namespace:
- Set
FANCY_FLUX_PREFIXand keepFANCY_FLUX_USE_FLUX_NAMESPACE=true - Gradually update templates to use the prefixed version
- Once all templates are updated, optionally set
FANCY_FLUX_USE_FLUX_NAMESPACE=false
See Prefix Configuration for detailed migration steps.
License
MIT
All versions of fancy-flux with dependencies
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/view Version ^10.0|^11.0|^12.0|^13.0
livewire/flux Version ^2.0
livewire/livewire Version ^3.7.3|^4.0