bimacoding / pdox
有用的查询构建器和PHP的PDO类。简单访问您的SQL记录。
1.0
2022-12-06 01:53 UTC
Requires
- php: >=5.5
- ext-json: *
- ext-pdo: *
This package is auto-updated.
Last update: 2024-09-06 05:39:58 UTC
README
_____ _____ ____
| __ \| __ \ / __ \
| |__) | | | | | | |_ __
| ___/| | | | | | \ \/ /
| | | |__| | |__| |> <
|_| |_____/ \____//_/\_\
快速、高效且有用的PHP查询构建器和PDO类
安装
composer.json文件
{ "require": { "bimacoding/pdox": "^1" } }
运行安装命令后。
$ composer install
或者直接运行以下命令。
$ composer require bimacoding/pdox
示例用法
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);
文档
文档页面:PDOx 文档
支持
许可
贡献
- 分支它( https://github.com/bimacoding/pdox/fork )
- 创建您的功能分支(git checkout -b my-new-feature)
- 提交您的更改(git commit -am '添加一些功能')
- 推送到分支(git push origin my-new-feature)
- 创建一个新的Pull Request
贡献者
- bimacoding İzni Burak Demirtaş - 创建者、维护者
- 其他人