izniburak/pdox-orm
最新稳定版本:v1.6.0
Composer 安装命令:
composer require izniburak/pdox-orm
包简介
Useful Query Builder, PDO Class for PHP. A simple access to your SQL records.
README 文档
README
_____ _____ ____
| __ \| __ \ / __ \
| |__) | | | | | | |_ __
| ___/| | | | | | \ \/ /
| | | |__| | |__| |> <
|_| |_____/ \____//_/\_\
Fast, efficient and useful Query Builder and PDO Class for #PHP
Install
composer.json file:
{
"require": {
"izniburak/pdox": "^1"
}
}
after run the install command.
$ composer install
OR run the following command directly.
$ composer require izniburak/pdox
Example Usage
require 'vendor/autoload.php'; $config = [ 'host' => 'localhost', 'driver' => 'mysql', 'database' => 'test', 'username' => 'root', 'password' => '', 'charset' => 'utf8', 'collation' => 'utf8_general_ci', 'prefix' => '' ]; $db = new \Buki\Pdox($config); $records = $db->table('users') ->select('id, name, surname, age') ->where('age', '>', 18) ->orderBy('id', 'desc') ->limit(20) ->getAll(); var_dump($records);
Docs
Documentation page: PDOx Docs
Support
Licence
Contributing
- Fork it ( https://github.com/izniburak/pdox/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
统计信息
- 总下载量: 103
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 247
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-07-13