pomm-project/model-manager
Composer 安装命令:
composer require pomm-project/model-manager
包简介
PHP Object Model Manager for Postgresql
关键字:
README 文档
README
ModelManager is a Pomm project package. It makes developers able to manage entities upon the database through model classes. It is not an ORM, it grants developers with the ability to perform native queries using all of Postgres’SQL and use almost all its types. This makes model layer to meet with performances while staying lean.
This package will provide:
- Model classes with all common built-in queries (CRUD but also,
countandexists). - Flexible entities
- Embedded entities converter
- Model Layer to group model computations in transactions.
The model layer also proposes methods to leverage Postgres nice transaction settings (constraint deferring, isolation levels, read / write access modes etc.).
Installation
Pomm components are available on packagist using composer. To install and use Pomm's model manager, add a require line to "pomm-project/model-manager" in your composer.json file. It is advised to install the CLI package as well.
In order to load the model manager's poolers at startup, it is possible to use the provided SessionBuilder in Pomm's configuration:
$pomm = new Pomm([ 'project_name' => [ 'dsn' => …, 'class:session_builder' => '\PommProject\ModelManager\SessionBuilder', ], … ]);
It is better to provide dedicated session builders with your project.
Documentation
The model manager’s documentation is available either online or directly in the documentation folder.
Tests
This package uses Atoum as unit test framework. The tests are located in sources/tests. This package also provides a ModelSessionAtoum class so the test classes can directly get sessions with the model and model layer poolers loaded.
pomm-project/model-manager 适用场景与选型建议
pomm-project/model-manager 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 288.24k 次下载、GitHub Stars 达 66, 最近一次更新时间为 2014 年 10 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「database」 「orm」 「postgresql」 「pomm」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 pomm-project/model-manager 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 pomm-project/model-manager 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 pomm-project/model-manager 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
SilverStripe now has tentative support for PostgreSQL ('Postgres')
Dibi is Database Abstraction Library for PHP
Kinikit - PHP Application development framework MVC component
Store your language lines in the database, yaml or other sources
PHP Database ORM for Symfony1. Do NOT use for new projects: please move to a newest Symfony release and Doctrine2
A package for automatically encrypting and decrypting Eloquent attributes in Laravel 5.5+, based on configuration settings.
统计信息
- 总下载量: 288.24k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 69
- 点击次数: 25
- 依赖项目数: 6
- 推荐数: 3
其他信息
- 授权协议: MIT
- 更新时间: 2014-10-06