drwrf/mismatch-orm
最新稳定版本:0.3.3
Composer 安装命令:
composer require drwrf/mismatch-orm
包简介
A simple library for complex SQL.
README 文档
README
███╗ ███╗██╗███████╗███╗ ███╗ █████╗ ████████╗ ██████╗██╗ ██╗
████╗ ████║██║██╔═══ █╔══╝██╔════╝██║ ██║╗
██╔████╔██║██║██████ Mismatch\ORM █║ ██║ ███████║╝
██║╚██╔╝██║██║╚════█_________________________█║ ██║ ██╔══██║╗
██║ ╚═╝ ██║██║███████║██║ ╚═╝ ██║██║ ██║ ██║ ╚██████╗██║ ██║╝
╚═╝ ╚═╝╚═╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝
A S I M P L E L I B R A R Y F O R C O M P L E X S Q L
╚═════════════════════════════════════════════════════════════╝
The goal of Mismatch\ORM is to make building and executing SQL
queries dead simple. It optimizes for the common scenarios,
while allowing you to fall back to straight SQL when necessary.
You see, SQL is actually pretty good at its job and you really
shouldn't have to work around your ORM to get at it.
Let's take a look.
~
<?php
use Mismatch\ORM\Query;
use Mismatch\ORM\Expression as e;
$authors = (new Query($conn, 'authors'))
->order('name', 'asc')
->where([
'signup' => e\after('2014-04-01')
'active' => true,
]);
foreach ($authors as $author) {
// It's pretty easy
}
统计信息
- 总下载量: 20
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-11-15