承接 svenanders/sardatabases 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

svenanders/sardatabases

Composer 安装命令:

composer require svenanders/sardatabases

包简介

Vanilla Database module for Zend Framework 2

README 文档

README

A ZF2 module to make connecting to databases a breeze

Currently includes support for MongoDB and MySQL. More will be added eventually

Note about MAMP and MySQL

For local testing, use 127.0.0.1 instead of localhost, and uncheck "Allow local access only" in the MAMP PRO settings.

###More info

http://blog.robbestad.com

How to use

In your composer.json, add the following line

"svenanders/sardatabases": "dev-master"

Add the following line to your application.config.php:

'modules' => array(
    'SarDatabases',
),

In your code, include the class:

use SarDatabases;

and then in your functions, use it like this:

$dbConn = new Databases\SarMongo("environment", "database", "collection");
$cursor = $dbConn->find(array("key" => "value"));

Supports:

->find
->insert
->update
->delete

Tests:

execute phpunit vendor/svenanders/sardatabases/tests/ from the root of your project to run the tests

#####License:

Sven Anders Robbestad (C) 2014

CC BY

统计信息

  • 总下载量: 939
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: public
  • 更新时间: 2014-01-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固