iriven / fluxon
Fluxon is a PHP form engine for headless, frontend, runtime, and distributed form workflows.
v6.5.0-stable
2026-04-22 20:14 UTC
Requires
- php: ^8.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.95
- infection/infection: ^0.29
- phpstan/phpstan: ^1.12
- phpunit/phpunit: ^11.5
- rector/rector: ^1.2
- dev-master
- v6.5.0-stable
- v6.2.1-stable
- v6.0.0-stable
- v5.9.1-beta
- v5.0.0-alpha
- v4.9.1-stable
- v4.8.1-stable
- v4.7.0-alpha
- v4.6.0-stable
- v4.6.0-alpha
- v4.5-stable
- v4.4-stable
- v4.3.2-stable
- v4.1.3-stable
- v4.1.2-alpha
- v3.9.5-stable
- v3.9.4-stable
- v3.9.2-stable
- v3.9.1-stable
- v3.9-stable
- v3.9-beta.1
- v3.9-alpha
- v3.8-stable
- v3.8-alpha
- v3.7
- v3.7-alpha
- v3.6
- v3.6-alpha
This package is auto-updated.
Last update: 2026-04-23 11:24:06 UTC
README
Fluxon PHP Form Engine. Limitless Possibilities.
A modern, extensible, and production-ready PHP form engine for building forms, APIs, and distributed systems.
๐ What is Fluxon?
Fluxon is a next-generation PHP Form Engine designed for modern architectures:
- Headless applications
- API-first systems
- Microservices & distributed environments
- Frontend-driven UIs (React, Vue, etc.)
It allows you to define forms once and use them everywhere.
โจ Key Features
๐งฑ Form Definition Engine
- Define forms using PHP arrays, DTOs, or objects
- Automatic schema generation
- Built-in validation support
๐ฏ Frontend SDK (JSON-first)
- Unified schema output
- UI component abstraction
- Multi-channel rendering
โ๏ธ Runtime Engine
- Synchronous execution
- Context-aware processing
- Fully decoupled architecture
๐งต Async Processing (Queue-ready)
- Job dispatching
- Serializable execution context
- Queue transport abstraction (Redis/SQS-ready)
๐ Plugin Ecosystem (V7+)
- Official plugins (CSRF, Captcha, Upload, etc.)
- Custom plugin support
- Stable plugin contracts
๐ก Headless Mode
- Pure validation engine
- API-ready responses
- No UI dependency
๐ Observability & Diagnostics
- Runtime profiling
- Production diagnostics
- Debug CLI tools
๐ฆ Installation
composer require iriven/fluxon
โก Quick Start
Define a form
use Iriven\Fluxon\Domain\Form\Form; $form = new Form('contact', [ 'email' => ['type' => 'email'], 'message' => ['type' => 'textarea'], ]);
Generate frontend schema
use Iriven\Fluxon\Application\Frontend\FrontendSdk; $sdk = new FrontendSdk(); $schema = $sdk->build($form);
Headless validation
use Iriven\Fluxon\Application\Headless\HeadlessFormProcessor; $processor = new HeadlessFormProcessor(); $result = $processor->submit($form, [ 'email' => 'john@example.com', 'message' => 'Hello' ]);
Async dispatch
use Iriven\Fluxon\Application\Runtime\AsyncRuntimeDispatcher; $dispatcher = new AsyncRuntimeDispatcher(); $result = $dispatcher->dispatch( 'submit', 'contact', ['email' => 'john@example.com'] );
๐งต Async Example Output
{
"transport": "queue",
"status": "queued",
"queue_size": 1
}
๐ Plugin System
interface OfficialPluginInterface { public function name(): string; public function version(): string; public function register(PluginContext $context): void; }
Official Plugins
- CSRF Protection
- Captcha Integration
- Media Upload
- Audit Trail
- Async Dispatch Enhancements
๐ง Architecture
src/
โโโ Application/
โ โโโ Runtime/
โ โโโ Headless/
โ โโโ Frontend/
โ โโโ Profiling/
โ โโโ Diagnostics/
โ โโโ Ecosystem/
โ โโโ Sdk/
โโโ Domain/
โโโ Infrastructure/
โโโ Integration/
๐ CLI
php bin/console debug:schema php bin/console debug:profile php bin/console debug:diagnostics php bin/console plugin:list php bin/console ecosystem:report
๐ Quality
Tests
vendor/bin/phpunit
Static Analysis
vendor/bin/phpstan analyse src tests
๐ Documentation
- Async Runtime
- Queue Transport
- Distributed Execution
- Plugin Development
- Advanced SDKs
๐ Versioning
Fluxon follows Semantic Versioning:
- Major โ architecture changes
- Minor โ new features
- Patch โ fixes and stability
๐ค Contributing
- Fork the repository
- Create a feature branch
- Add tests
- Submit a Pull Request
๐ License
MIT
๐ Vision
Fluxon is a schema-driven platform for building:
- dynamic UIs
- API-driven applications
- distributed systems
๐งฉ Roadmap
- JavaScript SDK (React/Vue)
- Plugin marketplace
- Redis / SQS transport
- Visual form builder
- Distributed runtime engine
โญ Why Fluxon?
- Clean architecture
- Headless-first design
- Async-ready
- Plugin ecosystem
- Production-grade tooling
๐ก Signature
Fluxon โ PHP Form Engine. Limitless Possibilities.
