th3mouk/rethinkdb-translator
Composer 安装命令:
composer require th3mouk/rethinkdb-translator
包简介
Convert cursor and array objects to associative array
README 文档
README
This PHP library providing a simple way to translate the result of danielmewes/php-rql library.
Installation
composer require th3mouk/rethinkdb-translator
Usage
It exists three transformations:
Translate::cursorToAssociativeArrayTranslate::arrayObjectToAssociativeArrayTranslate::arrayOfArrayObjectToAssociativeArray
Options
You can pass an array of options to each of the available methods, here are the available options :
| Option | Description | Value | Default |
|---|---|---|---|
| dateTimeToString | Should the dateTime instances be converted to strings (ISO8601) | boolean | true |
An example :
$options = ['dateTimeToString' => false]; // raw $data from RethinkDB Translate::cursorToAssociativeArray($data, $options);
Please
Feel free to improve this library.
统计信息
- 总下载量: 2.43k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-05-13