zauberfisch/silverstripe-persistent-dataobject
Composer 安装命令:
composer require zauberfisch/silverstripe-persistent-dataobject
包简介
Persistent and optionally immutable & versioned DataObjects for SilverStripe
README 文档
README
Persistent and optionally immutable & versioned DataObjects for SilverStripe
The two major features of this module are:
- A DataObject subclass that can not be deleted
Calling->delete()will mark an object as deleted, but not actually delete it
(Where necessary, objects can still be deleted by calling->purge()) - A DataObjectExtension that adds versioning
In contrast to the "silverstripe-versioned" module, versioning is achived by making DataObjects immutable and overloading->write()to create a duplicate of the current record instead of saving the existing.
This means theIDbecomes the unique version number, while an additionalVersionGroupIDandVersionGroupLatestkeep track of the relation of records. The benefit of this approach is being able to easily reference a version of an entry rather than always the latest version. Thus making it possible to have persistent storage of information that is easily integrable in other parts of SilverStripe (eg an invoice can safely reference a product price and does not need to create a snapshot).
TODOs / Planed features
- Tests
- Revisit decision to put VersionGroup_ID on DataObject rather than subclasses
- Extend GridField integration
- Hide/Show deleted records button
- History view to access older version from within a DataObject
- Implement non GridField form fields (eg Relation Dropdown that let's the user pick a entry and a version)
- Implement Database Field/Relation that references VersionGroupID instead of ID?
- Documentation
- Explain the usecase in more detail
- Examples
- SilverStripe 4 Support
zauberfisch/silverstripe-persistent-dataobject 适用场景与选型建议
zauberfisch/silverstripe-persistent-dataobject 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 153 次下载、GitHub Stars 达 2, 最近一次更新时间为 2017 年 06 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「silverstripe」 「persistent」 「versioned」 「dataobject」 「immutable」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 zauberfisch/silverstripe-persistent-dataobject 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 zauberfisch/silverstripe-persistent-dataobject 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 zauberfisch/silverstripe-persistent-dataobject 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Persistent settings package for Laravel framework.
SilverStripe Versioned Snapshots
SilverStripe Versioned Snapshot Admin
Persistent settings package for Laravel framework.
Field that hows a simple version history of a versioned DataObject.
统计信息
- 总下载量: 153
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 2
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2017-06-21