jostkleigrewe/symfony-tabler-bundle
Composer 安装命令:
composer require jostkleigrewe/symfony-tabler-bundle
包简介
Tabler Design System FormTypes and Components for Symfony
README 文档
README
Symfony bundle providing FormTypes, TwigComponents, and Stimulus Controllers for the Tabler Design System.
Note: This bundle does not ship Tabler assets. You must install Tabler CSS and Tabler Icons in your application.
Deutsche Kurzfassung
Beschreibung
Symfony Bundle mit FormTypes, TwigComponents und Stimulus Controllern für das Tabler Design System. Tabler CSS und Icons müssen separat installiert werden.
Schnellinstallation
composer require jostkleigrewe/symfony-tabler-bundle npm install @tabler/core @tabler/icons-webfont
Form Themes in config/packages/twig.yaml registrieren und CSS einbinden — siehe Installationsanleitung.
Dokumentation (Deutsch)
| Thema | Link |
|---|---|
| Installation | Installationsanleitung |
| Formular-Typen | FormTypes |
| Twig-Komponenten | Komponenten |
| Stimulus Controller | Controller |
| Theming & CSS | Theming |
| Card Data-Attribute | Data-Attribute |
| Showcase / Demo | Showcase |
Features
FormTypes (5)
Custom Symfony form types with Tabler styling.
- FloatingUnderlineType — Material-style floating label input with icon support
- SwitchType — Checkbox rendered as toggle switch
- ChoiceCardType — Card grid for choices with icons, badges, descriptions
- EntityCardType — Card grid for Doctrine entities
- CardSelectType — Generic multi-select cards
Full documentation | Data attributes reference
TwigComponents (15)
Reusable Symfony UX components with <twig:Tabler:*> prefix.
| Category | Components |
|---|---|
| Layout | PageHeader, Panel, CollapsiblePanel |
| Data Display | StatCard, FeatureCard, CodeBlock |
| Feedback | Alert, EmptyState, HelpTooltip |
| Navigation | ActionList, ActionItem, Stepper |
| Theming | ThemeSwitch, ThemePicker |
| Decorative | PatternBackground (14 animated patterns) |
Stimulus Controllers (6)
Interactive JavaScript controllers auto-discovered via StimulusBundle.
- theme — Dark/light mode + color theme switching with localStorage
- clipboard — Copy-to-clipboard with fallback
- sidebar — Sidebar collapse with mobile backdrop
- modal-frame — Dynamic modal content loading
- required-checkbox — Prevent unchecking required cards
- collapsible — Expandable panels with ARIA support
Theming
6 built-in color themes (EURIP, Forest, Sunset, Ocean, Purple, Rose) with dark/light mode support.
Requirements
- PHP >= 8.4
- Symfony 7.0+ or 8.0+
- Tabler CSS (not included — install separately)
- Tabler Icons (not included — install separately)
- symfony/ux-twig-component (for TwigComponents)
- Optional:
symfony/stimulus-bundle(for Stimulus controllers) - Optional:
doctrine/orm(for EntityCardType / CardSelectType)
Quick Start
1. Install
composer require jostkleigrewe/symfony-tabler-bundle npm install @tabler/core @tabler/icons-webfont
2. Register Form Themes
Add to config/packages/twig.yaml:
twig: form_themes: - 'bootstrap_5_layout.html.twig' - '@Tabler/form/floating_underline.html.twig' - '@Tabler/form/switch.html.twig' - '@Tabler/form/choice_card.html.twig' - '@Tabler/form/card_select.html.twig'
3. Include CSS
CSS files are auto-registered with AssetMapper:
<link rel="stylesheet" href="{{ asset('@jostkleigrewe/tabler-bundle/styles/tabler-forms.css') }}">
4. Use
{# TwigComponent #} <twig:Tabler:StatCard label="Users" value="1,234" icon="users" trend="up" /> {# FormType (in your form class) #} $builder->add('email', FloatingUnderlineType::class, [ 'label' => 'Email', 'icon' => 'mail', 'input_type' => 'email', ]);
Documentation
| Topic | EN | DE |
|---|---|---|
| Installation | Installation Guide | Installationsanleitung |
| Form Types | Form Types | Formular-Typen |
| Twig Components | Components | Komponenten |
| Stimulus Controllers | Controllers | Controller |
| Theming & CSS | Theming | Theming |
| Card Data Attributes | Data Attributes | Data-Attribute |
| Showcase / Demo | Showcase | Showcase |
Showcase
The bundle includes a built-in demo at /tabler/showcase showing all components and form types in action.
To enable, add to config/routes/tabler.yaml:
tabler_bundle: resource: '@TablerBundle/config/routes.yaml'
License
MIT License — see LICENSE file.
jostkleigrewe/symfony-tabler-bundle 适用场景与选型建议
jostkleigrewe/symfony-tabler-bundle 是一款 基于 Twig 开发的 Composer 扩展包,目前已累计 35 次下载、GitHub Stars 达 1, 最近一次更新时间为 2026 年 02 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「symfony」 「ui」 「form」 「components」 「design-system」 「tabler」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 jostkleigrewe/symfony-tabler-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 jostkleigrewe/symfony-tabler-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 jostkleigrewe/symfony-tabler-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
The bundle for easy using json-rpc api on your project
Diese Contao 4 Erweiterung stellt Google reCAPTCHA V2 in Form eines neuen Formularfeldes im Formulargenerator bereit. This extension provides Google reCAPTCHA V2 in the form of a new form field in the form generator of Contao Open Source CMS.
Web Font Loader gives you added control when using linked fonts via @font-face.
A Laravel Filament Forms slug field.
Bundle Symfony DaplosBundle
A jQuery augmented PHP library for creating and validating HTML forms
统计信息
- 总下载量: 35
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 32
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-02-20