Download the PHP package luwc/webman-yii2-orm without Composer
On this page you can find all versions of the php package luwc/webman-yii2-orm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download luwc/webman-yii2-orm
More information about luwc/webman-yii2-orm
Files in luwc/webman-yii2-orm
Download luwc/webman-yii2-orm
More information about luwc/webman-yii2-orm
Files in luwc/webman-yii2-orm
Vendor luwc
Package webman-yii2-orm
Short Description Yii2-style ActiveRecord, Validator, and DataProvider ORM for Webman framework
License MIT
Homepage https://github.com/ak47f16200/webman-yii2-orm.git
Package webman-yii2-orm
Short Description Yii2-style ActiveRecord, Validator, and DataProvider ORM for Webman framework
License MIT
Homepage https://github.com/ak47f16200/webman-yii2-orm.git
Please rate this library. Is it a good library?
Informations about the package webman-yii2-orm
Webman Yii2 ORM
将 Yii2 框架中经典的 ActiveRecord、Validator、DataProvider 和 Behaviors 功能移植到 Webman 框架中。
特性
- ActiveRecord: Yii2 风格的 ORM,支持关联查询、验证规则等
- ActiveQuery: 完全兼容 Yii2 的查询构建器,支持链式调用
- Query Builder: 流畅的数据库查询构建器
- Validator: 强大的数据验证系统,支持自定义规则
- DataProvider: 数据提供者,支持分页、排序、过滤
- Behaviors: 行为系统,支持 TimestampBehavior 等自动填充功能
- Database: 数据库抽象层,支持多种数据库
- Multi-Database: 完全支持多数据库连接,不同模型可连接不同数据库
- Transaction: 支持跨数据库事务操作
- Model Validation: 模型级别的数据验证
- Yii2 Compatibility: 100% 兼容 Yii2 的事务和数据库操作语法
安装
配置
1. 数据库连接配置
复制配置文件模板:
编辑 config/database.php,配置您的数据库连接:
2. Bootstrap配置
在 config/bootstrap.php 中添加初始化代码:
或者手动初始化:
快速开始
ActiveRecord 使用
ActiveQuery 强大查询
数据验证
DataProvider 使用
数据库事务操作
基础事务使用
手动控制事务
复杂多表操作事务
多数据库连接支持
完全兼容 Yii2 的多数据库连接功能,不同模型可以连接不同的数据库。
配置多数据库连接
不同模型使用不同数据库
多数据库事务操作
原生SQL多数据库操作
完全兼容 Yii2 语法
兼容 Yii2 的数据库操作
完全兼容的 Yii2 事务写法 🔥
文档
- ActiveRecord 使用指南
- Validator 使用指南
- DataProvider 使用指南
- Behaviors 行为系统指南
- 多表事务操作示例 🔥 新增
无缝迁移
本包提供了完全兼容 Yii2 的 API,您的现有 Yii2 代码可以直接运行:
🚀 查看 CHANGELOG.md 了解如何在 5 分钟内将您的 Yii2 项目迁移到 Webman!
许可证
MIT
All versions of webman-yii2-orm with dependencies
PHP Build Version
Package Version
Requires
illuminate/database Version
^8.0|^9.0|^10.0
illuminate/validation Version ^8.0|^9.0|^10.0
illuminate/pagination Version ^8.0|^9.0|^10.0
php Version >=8.1
workerman/webman-framework Version ^2.1.0
illuminate/validation Version ^8.0|^9.0|^10.0
illuminate/pagination Version ^8.0|^9.0|^10.0
php Version >=8.1
workerman/webman-framework Version ^2.1.0
The package luwc/webman-yii2-orm contains the following files
Loading the files please wait ...