shopsys/read-model
Composer 安装命令:
composer require shopsys/read-model
包简介
[experimental] Read model layer for Shopsys Framework
README 文档
README
This bundle for Shopsys Framework separates templates from model using read model concept.
The bundle is dedicated for projects based on Shopsys Framework (i.e. created from shopsys/project-base) exclusively.
This repository is maintained by shopsys/shopsys monorepo, information about changes is in monorepo CHANGELOG.md.
Installation
The plugin is a Symfony bundle and is installed in the same way:
Download
First, you download the package using Composer:
composer require shopsys/read-model
Register
For the bundle to be loaded in your application you need to register it in registerBundles() method in the app/AppKernel.php file of your project:
+ new Shopsys\ReadModelBundle\ShopsysReadModelBundle(),
Usage
If you want to leverage the advantages of read model concept, you need to use the particular implementation of ListedProductViewFacadeInterface in your controllers (there is already prepared one implementation in the bundle).
The facade provides you the view objects for product lists that can be then used in the templates.
Available View Objects
ListedProductView- product representation for FE product listsActionView- representation of product action area (i.e. form for adding a product to cart, or link to the product detail in the case of main variant)ImageView- representation of image
Available Twig functions
image- renders image from givenImageView
Contributing
Thank you for your contributions to Shopsys Read Model package. Together we are making Shopsys Framework better.
This repository is READ-ONLY. If you want to report issues and/or send pull requests, please use the main Shopsys repository.
Please, check our Contribution Guide before contributing.
Support
What to do when you are in troubles or need some help? The best way is to join our Slack.
If you want to report issues, please use the main Shopsys repository.
shopsys/read-model 适用场景与选型建议
shopsys/read-model 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 108k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2019 年 05 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「SSFW」 「read model」 「Shopsys Platform」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 shopsys/read-model 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 shopsys/read-model 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 shopsys/read-model 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Shopsys Platform Google Cloud Bundle
Shopsys Framework plugin interface for product feed generation
Shopsys Platform plugin interface for Luigi's Box XML product feed generation
Shopsys Platform plugin interface for Luigis Box XML article feed generation
Shopsys Platform connector to Luigi's Box
Administration interface for the Shopsys Platform
统计信息
- 总下载量: 108k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 19
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2019-05-16