becklyn/rad
Composer 安装命令:
composer require becklyn/rad
包简介
RAD related functionality for usage in Symfony.
README 文档
README
This bundle provides RAD related functionality for the usage in Symfony.
⚠️ New Composer package name
This bundle has been renamed from becklyn/rad-bundle to becklyn/rad for v8.0. Versions <=7.x are still available under becklyn/rad-bundle.
AJAX Protocol
This bundle uses a default AJAX protocol, that is used in the AjaxResponseBuilder and can be used for your
project. The ajax call will always return an error 200, as it shouldn't flood the error tracking (with error 400
AJAX request).
The protocol looks like this:
interface AjaxResponse { /** * Whether the call succeeded. */ ok: boolean; /** * Any string status, like "ok" or "invalid-id" that * you can react to in your code (if you need to). */ status: string; /** * The response data. */ data: Record<number|string, any> | Array<any>; /** * A redirect target, where the AJAX handler should * redirect to. */ redirect?: string; /** * A toast message with optional type and action target. */ message?: { text: string; impact: "positive" | "negative" | "neutral"; action?: { label: string; url: string; }; }; }
There is a corresponding fetch client implementation in mojave that can be used.
This type above is also available as generic TypeScript type in mojave.
Form Extensions
This bundle automatically adds several form extensions.
Collection Labels Extension
This extension adds three additional optional labels for Collection form fields:
empty_messageis displayed if there is no entry.entry_add_labelis the label of the "add entry" button.entry_remove_labelis the label of every "remove entry" button.
becklyn/rad 适用场景与选型建议
becklyn/rad 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 12.24k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2020 年 07 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 becklyn/rad 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 becklyn/rad 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 12.24k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 4
- 推荐数: 1
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2020-07-10