PHPackages                             th3mouk/rethinkdb-translator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. th3mouk/rethinkdb-translator

ActiveLibrary

th3mouk/rethinkdb-translator
============================

Convert cursor and array objects to associative array

1.1.1(6y ago)12.4k1MITPHP

Since May 13Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Th3Mouk/rethinkdb-translator)[ Packagist](https://packagist.org/packages/th3mouk/rethinkdb-translator)[ RSS](/packages/th3mouk-rethinkdb-translator/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (7)Versions (4)Used By (0)

RethinkDB Translator
====================

[](#rethinkdb-translator)

This PHP library providing a simple way to translate the result of `danielmewes/php-rql` library.

[![Latest Stable Version](https://camo.githubusercontent.com/ab0b13811ad025d05b8ac46098c8c089b9018acda46a08be656229fe1911f6e0/68747470733a2f2f706f7365722e707567782e6f72672f7468336d6f756b2f72657468696e6b64622d7472616e736c61746f722f762f737461626c65)](https://packagist.org/packages/th3mouk/rethinkdb-translator)[![Latest Unstable Version](https://camo.githubusercontent.com/9278e42b8e225f13d352ee6a345747658b8087160cce503b27346a5ecf973d20/68747470733a2f2f706f7365722e707567782e6f72672f7468336d6f756b2f72657468696e6b64622d7472616e736c61746f722f762f756e737461626c65)](https://packagist.org/packages/th3mouk/rethinkdb-translator)[![Total Downloads](https://camo.githubusercontent.com/99b3dbfedf52faffe019f34c1fb05e4b3fe678fc457f32bd1082f4e4be93463b/68747470733a2f2f706f7365722e707567782e6f72672f7468336d6f756b2f72657468696e6b64622d7472616e736c61746f722f646f776e6c6f616473)](https://packagist.org/packages/th3mouk/rethinkdb-translator)[![License](https://camo.githubusercontent.com/40b9bf853e51931f0066d1f3e4a65a0a07f6a5163636a72e86bb5a4e3aa19198/68747470733a2f2f706f7365722e707567782e6f72672f7468336d6f756b2f72657468696e6b64622d7472616e736c61746f722f6c6963656e7365)](https://packagist.org/packages/th3mouk/rethinkdb-translator)

[![Build Status](https://camo.githubusercontent.com/2cb89459c6fc15bd3656bc9030775605eeb87fd4588ed0de2597640c0ce5f875/68747470733a2f2f7472617669732d63692e6f72672f5468334d6f756b2f72657468696e6b64622d7472616e736c61746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Th3Mouk/rethinkdb-translator)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/ec3a4917e08f007e90f0e8418461f76504aab56d5be523e47d218efc90970266/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f5468334d6f756b2f72657468696e6b64622d7472616e736c61746f722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Th3Mouk/rethinkdb-translator/?branch=master)

Installation
------------

[](#installation)

`composer require th3mouk/rethinkdb-translator`

Usage
-----

[](#usage)

It exists three transformations:

- `Translate::cursorToAssociativeArray`
- `Translate::arrayObjectToAssociativeArray`
- `Translate::arrayOfArrayObjectToAssociativeArray`

Options
-------

[](#options)

You can pass an array of options to each of the available methods, here are the available options :

OptionDescriptionValueDefaultdateTimeToStringShould the dateTime instances be converted to strings (ISO8601)booleantrueAn example :

```
$options = ['dateTimeToString' => false];

// raw $data from RethinkDB
Translate::cursorToAssociativeArray($data, $options);
```

Please
------

[](#please)

Feel free to improve this library.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 88.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~36 days

Total

3

Last Release

2487d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5f31e3a808a4f015ebad005caa64866fc90e39475151fc95ef1e11f774d35505?d=identicon)[Th3Mouk](/maintainers/Th3Mouk)

---

Top Contributors

[![Th3Mouk](https://avatars.githubusercontent.com/u/5006899?v=4)](https://github.com/Th3Mouk "Th3Mouk (8 commits)")[![TomPradat](https://avatars.githubusercontent.com/u/16164512?v=4)](https://github.com/TomPradat "TomPradat (1 commits)")

---

Tags

rethinkdbrethinkdb-adapter

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/th3mouk-rethinkdb-translator/health.svg)

```
[![Health](https://phpackages.com/badges/th3mouk-rethinkdb-translator/health.svg)](https://phpackages.com/packages/th3mouk-rethinkdb-translator)
```

###  Alternatives

[duxet/laravel-rethinkdb

RethinkDB adapter for Laravel

14910.4k](/packages/duxet-laravel-rethinkdb)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
