tbolier/php-rethink-ql
Composer 安装命令:
composer require tbolier/php-rethink-ql
包简介
A clean and solid RethinkDB driver for PHP.
关键字:
README 文档
README
PHP-RETHINK-QL
A PHP RethinkDB driver for the RethinkDB query language (ReQL).
License: Apache License 2.0
PHP-RETHINK-QL

License
PHP-RETHINK-QL is licensed under the terms of the Apache License 2.0
Description
A new clean and solid RethinkDB driver for PHP, focused on clean code with SOLID principles in mind.
Unfortunately the original PHP-RQL driver is no longer is no longer actively maintained and patched. That's why we have started this new PHP RethinkDB driver with the goal to create an easy to understand driver that can be improved and maintained by the community.
Requirements
RethinkDB version
This library supports the RethinkDB release >=2.3.0 and protocol version V1_0.
Earliers version of RethinkDB are not supported at this moment.
PHP
PHP version >=7.1
Supported ReQL Command API overview.
In the release roadmap you will find a table with the currently and future supported ReQL command methods.
Getting started
Multiple connections can be injected into the connection Registry.
Create the Rethink driver object by injecting a Connection object into it.
<?php use TBolier\RethinkQL\Rethink; use TBolier\RethinkQL\Connection\Registry; $connections = [ 'default_connection' => [ 'host' => 'localhost', 'port' => 28015, 'default_db' => 'demoDB', 'user' => 'demo', 'password' => 'demo', 'timeout' => 5, 'timeout_stream' => 10, ], ]; $registry = new Registry($connections); $r = new Rethink($registry->getConnection('default_connection')); // Now you can connect to RethinkDB. $r->connection()->connect();
The driver class Rethink has a default database defined in the connection options. However you can always switch database if needed.
$r->use('demoDB-2');
The driver class Rethink has an API Interface that supports the ReQL domain-specific language (DSL).
A create table example:
$r->db() ->tableCreate('Table') ->run();
For more examples about executing queries go to our docs section: Getting started
Contributing
Please read the contributing guidelines if you would like to contribute to this project.
Discussions and chat
You can find us at Gitter.im in the rethinkdb-php room at https://gitter.im/rethinkdb-php/Lobby
Author and collaborators
- Timon Bolier - Author and collaborator - tbolier
- Michel Maas - Collaborator - AxaliaN
- Jérémy - Collaborator - Th3Mouk
See also the list of contributors who participated in this project.
tbolier/php-rethink-ql 适用场景与选型建议
tbolier/php-rethink-ql 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 11.7k 次下载、GitHub Stars 达 52, 最近一次更新时间为 2018 年 02 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「nosql」 「database」 「php」 「adapter」 「driver」 「rethinkdb」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 tbolier/php-rethink-ql 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 tbolier/php-rethink-ql 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 tbolier/php-rethink-ql 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Dibi is Database Abstraction Library for PHP
The DreamFactory(tm) CouchDB Service.
Store your language lines in the database, yaml or other sources
The CodeIgniter Redis package
A package for automatically encrypting and decrypting Eloquent attributes in Laravel 5.5+, based on configuration settings.
Symfony lock Tarantool store
统计信息
- 总下载量: 11.7k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 52
- 点击次数: 19
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2018-02-13