Download the PHP package lerko/p-hero without Composer
On this page you can find all versions of the php package lerko/p-hero. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package p-hero
介绍
phero是一个数据库查询的orm类库,注解形式的model以及方便快速的数据库操作方法
这是一个兴趣使然的ORM(手动斜眼笑)
V1.0.3
支持下列特性:
- swoole task数据库连接池
- 数据库链接断线自动重连
- 注解形式的Unit
- 读写分离配置
- 流畅的orm,支持复杂sql
- 注解形式的模型关联
- 命令行模型生成
- 查询即时缓存(redis,mamcache)
文档位于doc 可以查看test中单元测试的例子
安装
-
composer
- git clone
第一个ORM
创建一个Unit
对应的表结构为
进行一些基础的查询
单表
子查询
关键字 | 对应sql符号 |
---|---|
where{and/or}Eq | = |
where{and/or}Neq | \<> (!=) |
where{and/or}In | in |
where{and/or}Not_in | not in |
where{and/or}Between | between |
where{and/or}Like | like |
where{and/or}Not_like | not like |
where{and/or}Lt | < |
where{and/or}Lr | <= |
where{and/or}Gt | > |
where{and/or}Ge | >= |
where{and/or}Regexp | regexp |
where{and/or}Isnotnull | is not null |
where{and/or}Isnull | is null |
where{and/or}Exists | exists |
where{and/or}Not_exists | not exists |
where{Lt/Lr/Gt/Ge}{and/or}All | all |
where{Lt/Lr/Gt/Ge}{and/or}Any | any |
删除
更新
插入
All versions of p-hero with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.0
symfony/cache Version v3.3.5
league/climate Version 3.2.1
zendframework/zend-code Version 3.1.0
predis/predis Version ^1.1
symfony/console Version ^3.3
webmozart/console Version 1.0.0-beta5
symfony/cache Version v3.3.5
league/climate Version 3.2.1
zendframework/zend-code Version 3.1.0
predis/predis Version ^1.1
symfony/console Version ^3.3
webmozart/console Version 1.0.0-beta5
The package lerko/p-hero contains the following files
Loading the files please wait ....