atwx/silverstripe-frontdesk-kit
Composer 安装命令:
composer require atwx/silverstripe-frontdesk-kit
包简介
A frontend kit for Silverstripe framework
关键字:
README 文档
README
A modern CRUD frontend toolkit for Silverstripe 6, built on Tailwind CSS + DaisyUI + HTMX + Alpine.js + Chart.js.
Rather than rigid table columns from $summary_fields and FieldList blobs for filters, you define columns, filters, and row actions cleanly in the controller — inspired by Laravel Backpack and Django Admin.
Requirements
- PHP ^8.4
- Silverstripe Framework ^6
- Composer
Installation
composer require atwx/silverstripe-frontdesk-kit
Expose assets and flush Silverstripe:
composer install vendor/bin/sake dev/build flush=1
Quick Start
See docs/quickstart.md for a step-by-step guide to setting up a new project.
Documentation
| Document | Contents |
|---|---|
| docs/quickstart.md | New project setup, first controller |
| docs/columns.md | Defining columns, links, formatting, export |
| docs/filters.md | TextFilter, SelectFilter, DateRangeFilter |
| docs/row-actions.md | Row actions, HTMX actions, conditional visibility |
| docs/templates.md | Overriding templates, HTMX partial rendering |
| docs/charts.md | Declarative Chart.js rendering via Chart include |
| docs/frontend.md | Building CSS/JS, theming via CSS custom properties |
Overview
class ContactManageController extends FrontdeskController { private static $managed_model = Contact::class; private static $url_segment = 'contacts'; private static $title = 'Contacts'; protected function defineColumns(): ColumnCollection { return ColumnCollection::fromSummaryFields(Contact::class) ->make('Title', 'Name')->link('view/{ID}')->end() ->make('Company', 'Company')->end(); } protected function defineFilters(): FilterCollection { return FilterCollection::create() ->add(TextFilter::create('Query', 'Search') ->apply(fn($list, $v) => $list->filterAny([ 'FirstName:PartialMatch' => $v, 'Surname:PartialMatch' => $v, ]))); } protected function formFields(FieldList $fields): FieldList { $fields->removeByName('InternalNote'); return $fields; } }
Charts
Chart.js is bundled. Render any Chart.js config declaratively:
<% include Atwx\SilverstripeFrontdeskKit\Includes\Chart
ChartTitle='Revenue (12 months)',
ChartHeight='360px',
ChartConfigJson=$RevenueChartJson %>
Expose a JSON method on the controller:
public function RevenueChartJson(): string { return json_encode([ 'type' => 'line', 'data' => ['labels' => $labels, 'datasets' => [...]], 'options' => ['responsive' => true, 'maintainAspectRatio' => false], ]); }
The bundled JS picks up every [data-fdk-chart] canvas on page load and after HTMX swaps.
Form Field Styling
DaisyUI utility classes (input, select, textarea, checkbox, btn) are applied automatically to any form field rendered inside a FrontdeskController or Security controller context — the CMS admin is left untouched.
Frontend Build
cd vendor/atwx/silverstripe-frontdesk-kit
yarn install
yarn build
Theme without rebuilding via CSS custom properties:
/* In your app CSS */ :root { --p: 220 80% 30%; /* DaisyUI primary colour */ --s: 160 60% 40%; /* DaisyUI secondary colour */ }
Licence
BSD-3-Clause
atwx/silverstripe-frontdesk-kit 适用场景与选型建议
atwx/silverstripe-frontdesk-kit 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 51 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 03 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「cms」 「silverstripe」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 atwx/silverstripe-frontdesk-kit 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 atwx/silverstripe-frontdesk-kit 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 atwx/silverstripe-frontdesk-kit 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
GraphQL authentication for your headless Craft CMS applications.
Set Links with a specific language parameter
Supercharged text field validation.
Analytics chooser extensions for site settings.
Integrate with Snipcart.
统计信息
- 总下载量: 51
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 19
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2026-03-16