iriven/fluxon
最新稳定版本:v6.5.0-stable
Composer 安装命令:
composer require iriven/fluxon
包简介
Fluxon is a PHP form engine for headless, frontend, runtime, and distributed form workflows.
README 文档
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.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-22
