monolyth/lodger
Composer 安装命令:
composer require monolyth/lodger
包简介
Codger recipes for Monolyth components
README 文档
README
Codger recipes for Monolyth components
Installation
Using Composer (recommended):
$ composer require --dev monolyth/lodger
Usage
See the Codger documentation for general usage.
Included recipes
lodger/module
Generates an entire Monolyth-style module. --skip-SOMETHING options are
provided to skip certain components, e.g. --skip-model to not generate a
model.
lodger/model
Generate a model. By default properties are added according to a corresponding
database table; use --skip-prefill to skip this. Optionally specify
--ornament to make the model Ornament-compatible.
lodger/repository
Generate a repository. Though not technically a part of Monolyth (since we don't want to dictate how you handle your data), in practice Monolyth projects tend to use repositories for all (database) storage operations - i.e., insert, update, delete and select.
Generated repositories hold basic common methods such as save, all and
find. However, the implementation is up to you. If your repositories follow a
common structure, we recommend extending a base class instead. For
database-based storage, have a look at the DatabaseRepository in
sensimedia\supporty. It plays very nicely with Monolyth, but does make some
assumptions based on how Sensi Media (my company) builds its projects.
lodger/view
Generate a generic (page) view.
lodger/listing/view and lodger/listing/template
Generate a view and template for a "listing page". This contains basically the
output of a repository's all() call, with clickable links.
lodger/detail/view and lodger/detail/template
Generate a view and template for a "detail view". This is where you end up when you click on one of the listing links ;)
lodger/controller
Generate a generic CRUD controller. The generated create, update and
delete methods work out of the box with the corresponding repository, but of
course do nothing yet since we aren't dictating how you should store your data
(or handle permissions, for that matter).
lodger/form
Generate a Formulaic form to go with the module.
monolyth/lodger 适用场景与选型建议
monolyth/lodger 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 29 次下载、GitHub Stars 达 0, 最近一次更新时间为 2019 年 12 月 22 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 monolyth/lodger 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 monolyth/lodger 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 29
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 6
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-12-22