tuadmin/pdox
Composer 安装命令:
composer require tuadmin/pdox
包简介
Useful Query Builder, PDO Class for PHP. A simple access to your SQL records.(FIXED by tuadmin)
README 文档
README
Fast, efficient and useful Query Builder and PDO Class for #PHP
Install
composer.json file:
{
"require": {
"tuadmin/pdox": "dev-master"
}
}
after run the install command.
$ composer install
OR run the following command directly.
$ composer require tuadmin/pdox:dev-master
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); //other example $db = new \Buki\Pdox([ 'host' => '192.168.1.2:3607', 'driver' => 'mysql', 'database' => 'test', 'username' => 'root', 'password' => '']); $records = $db->table('users') ->select('id, name, surname, age') ->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
- izniburak İzni Burak Demirtaş - creator, maintainer
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-01-05