yorch/v3wh
Composer 安装命令:
composer require yorch/v3wh
包简介
V3ctor WareHouse Core for MongoDb and MySQL
关键字:
README 文档
README
Description
V3ctor WareHouse Core for MongoDb and MySQL.
Requirements
Developer Documentation
Execute phpdoc -d v3wh/
Unit Test
For run Unit Test, complete information connection and execute the next commands:
phpunit V3WareHouseTest.php
Installation
Create file composer.json
{
"require": {
"php": ">=5.4.0",
"yorch/v3wh" : "dev-master",
"monolog/monolog": "1.13.1",
"catfan/medoo": "v1.1.2"
}
}
Execute composer.phar install
Example
//$v3ctor = V3WareHouse::getInstance('v3Mongo', $hostname, $username, $password, $dbname, $port);
// For PHP 7
$v3ctor = V3WareHouse::getInstance('v3MongoDB', $hostname, $username, $password, $dbname, $port);
if (! $v3ctor->isConnected())
die("Unable load V3ctor WareHouse");
$doc = array('r' => 666);
$newObject = $v3ctor->newObject("demo", $doc);
var_dump($newObject);
Notes
v3wh is a Core for MongoDb and needs php mongo module. For MySQL and SQL Server support is required _id field in the table, check demo.sql.
References
http://es.wikipedia.org/wiki/Singleton
P.D. Let's go play !!!
统计信息
- 总下载量: 75
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2015-07-21