fire1/ax-form-bundle
Composer 安装命令:
composer require fire1/ax-form-bundle
包简介
Symfony bundle for building AJAX-powered Bootstrap 5.3/jQuery modals forms with ease.
README 文档
README
AxFormBundle makes it easy to open your Symfony forms in Bootstrap 5.3 modals using AJAX. It handles all the "boring" parts—like page reloads and error messages—so you don't have to write custom JavaScript. It’s the simplest way to turn your Symfony forms into fast pop-ups with almost no extra code.
Features
- Fluent AxFormService: A clean API for handling entity creation and modification within modals (requires Doctrine and Symfony Form).
- AxStepsService: Session-based orchestrator for complex multi-step form workflows.
- AbstractAxFormController: Base controller with built-in helpers for modal initialization and entity deletion.
- Twig Integration: Custom functions for rendering modal triggers and the required container structure.
- Bootstrap 5 Support: Out-of-the-box templates compatible with Bootstrap 5.
- Portable Assets: Includes a standalone npm package
@fire1/ax-formwith Vue 3 components.
Requirements
- PHP 8.2 or higher
- Symfony 5.4, 6.x, or 7.x
- Doctrine ORM (for
AxFormServiceentity persistence) - Symfony Form Component (for form handling)
- Twig Bundle (for rendering)
Documentation
Full documentation is available in the docs folder:
Implementation notes (shared service, Next/Submit, JS): src/Service/readme.md, src/Resources/assets/readme.md.
Quick Installation
composer require fire1/ax-form-bundle
Register the bundle in config/bundles.php:
return [ // ... Fire1\AxFormBundle\Fire1AxFormBundle::class => ['all' => true], ];
Ensure you have the required modal structure in your base layout:
{{ ax_form_modal() }}
Basic Usage Example
// In a Controller extending AbstractAxFormController public function new(): Response { $form = $this->formPage(Task::class, 'task'); return $form ->title('Create New Task') ->do(TaskType::class, function (Task $task, AxFormService $form) { $form->record(); return $form->redirectByReferer(); }); }
fire1/ax-form-bundle 适用场景与选型建议
fire1/ax-form-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 1, 最近一次更新时间为 2026 年 04 月 17 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 fire1/ax-form-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 fire1/ax-form-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 34
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-17