th3mouk/rethinkdb-translator 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

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.

Latest Stable Version Latest Unstable Version Total Downloads License

Build Status Scrutinizer Code Quality

Installation

composer require th3mouk/rethinkdb-translator

Usage

It exists three transformations:

  • Translate::cursorToAssociativeArray
  • Translate::arrayObjectToAssociativeArray
  • Translate::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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-05-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固