定制 danielmewes/php-rql 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

danielmewes/php-rql

最新稳定版本:2.3.0

Composer 安装命令:

composer require danielmewes/php-rql

包简介

A PHP client driver for the RethinkDB query language (ReQL)

README 文档

README

A PHP client driver for the RethinkDB query language (ReQL).

PHP-RQL is licensed under the terms of the Apache License 2.0 http://www.apache.org/licenses/LICENSE-2.0

Continuous Integration

Master branch: master branch

Development branch: dev branch

To run the tests at the command line, issue composer install and then composer test at the package root. This requires composer to be available in $PATH.

Documentation

Read the PHP-RQL API documentation.

The official JavaScript driver documentation has more details on the available terms. Most examples for the JavaScript driver can be translated to PHP-RQL with few changes.

Example

<?php // Load the driver require_once("rdb/rdb.php"); // Connect to localhost $conn = r\connect('localhost'); // Create a test table r\db("test")->tableCreate("tablePhpTest")->run($conn); // Insert a document $document = array('someKey' => 'someValue'); $result = r\table("tablePhpTest")->insert($document) ->run($conn); echo "Insert: $result\n"; // How many documents are in the table?  $result = r\table("tablePhpTest")->count()->run($conn); echo "Count: $result\n"; // List the someKey values of the documents in the table // (using a mapping-function) $result = r\table("tablePhpTest")->map(function($x) { return $x('someKey'); })->run($conn); foreach ($result as $doc) { print_r($doc); } // Delete the test table r\db("test")->tableDrop("tablePhpTest")->run($conn); ?>

Release Notes

...are available on the main website: http://php-rql.dnsalias.net

Attributions

统计信息

  • 总下载量: 180.46k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 339
  • 点击次数: 3
  • 依赖项目数: 18
  • 推荐数: 1

GitHub 信息

  • Stars: 337
  • Watchers: 14
  • Forks: 54
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固