capcaicah/rethinkdb-laravel-php is a Laravel package for a clean and solid rethinkdb driver for php..
It currently has 0 GitHub stars and 1 downloads on Packagist.
Install it with composer require capcaicah/rethinkdb-laravel-php.
Discover more Laravel packages by capcaicah
or browse all Laravel packages to compare alternatives.
Last updated
This is a Fork of tbolier / php-rethink-ql. I have fixed some of the key problems so it is working.
If you are just looking for a working instance of the original PHP-RETHINK-QL, you can clone this repo and use it; I am only maintaining this repo for my personal use agreed and followed by the authors license policy (Apache License 2.0) but I am neither maintaining this project nor part of the original dev team member. If you have any questions or found any issue, you can open a request and I will try my best to help, but please considering open that request at the original repo, I am sure you will get more help there.
PHP-RETHINK-QL
A PHP RethinkDB driver for the RethinkDB query language (ReQL).
License: Apache License 2.0

PHP-RETHINK-QL is licensed under the terms of the Apache License 2.0
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.
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 version >=7.1
In the release roadmap you will find a table with the currently and future supported ReQL command methods.
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', // this is an incorrect parameter key
'hostname' => '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
Please read the contributing guidelines if you would like to contribute to this project.
You can find us at Gitter.im in the rethinkdb-php room at https://gitter.im/rethinkdb-php/Lobby
See also the list of contributors who participated in this project.